xref: /PHP-7.3/Zend/tests/instanceof.phpt (revision 162aa1a5)
1--TEST--
2instanceof shouldn't call __autoload
3--FILE--
4<?php
5spl_autoload_register(function ($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