xref: /PHP-5.4/Zend/tests/instanceof.phpt (revision 610c7fbe)
1--TEST--
2instanceof shouldn't call __autoload
3--FILE--
4<?php
5function __autoload($name) {
6	echo("AUTOLOAD '$name'\n");
7	eval("class $name {}");
8}
9
10class A {
11}
12$a = new A;
13var_dump($a instanceof B);
14var_dump($a instanceof A);
15?>
16--EXPECT--
17bool(false)
18bool(true)
19