![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: instanceof shouldn't call __autoload ! 3: --FILE-- ! 4: <?php ! 5: function __autoload($name) { ! 6: echo("AUTOLOAD '$name'\n"); ! 7: eval("class $name {}"); ! 8: } ! 9: ! 10: class A { ! 11: } ! 12: $a = new A; ! 13: var_dump($a instanceof B); ! 14: var_dump($a instanceof A); ! 15: ?> ! 16: --EXPECT-- ! 17: bool(false) ! 18: bool(true)