mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
19 lines
282 B
PHP
19 lines
282 B
PHP
--TEST--
|
|
instanceof shouldn't call autoloader
|
|
--FILE--
|
|
<?php
|
|
spl_autoload_register(function ($name) {
|
|
echo("AUTOLOAD '$name'\n");
|
|
eval("class $name {}");
|
|
});
|
|
|
|
class A {
|
|
}
|
|
$a = new A;
|
|
var_dump($a instanceof B);
|
|
var_dump($a instanceof A);
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(true)
|