mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
19 lines
262 B
Plaintext
19 lines
262 B
Plaintext
|
--TEST--
|
||
|
instanceof shouldn't call __autoload
|
||
|
--FILE--
|
||
|
<?php
|
||
|
function __autoload($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)
|