php-src/Zend/tests/instanceof.phpt
2017-02-03 18:52:57 +01:00

19 lines
276 B
PHP

--TEST--
instanceof shouldn't call __autoload
--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)