mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
29 lines
613 B
PHP
Executable File
29 lines
613 B
PHP
Executable File
--TEST--
|
|
ZE2 Autoload and recursion
|
|
--SKIPIF--
|
|
<?php
|
|
if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed');
|
|
if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
function __autoload($class_name)
|
|
{
|
|
var_dump(class_exists($class_name));
|
|
require_once(dirname(__FILE__) . '/' . $class_name . '.p5c');
|
|
echo __FUNCTION__ . '(' . $class_name . ")\n";
|
|
}
|
|
|
|
var_dump(class_exists('autoload_derived'));
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(false)
|
|
__autoload(autoload_root)
|
|
__autoload(autoload_derived)
|
|
bool(true)
|
|
===DONE===
|