xref: /PHP-8.0/Zend/tests/instanceof.phpt (revision f8d79582)
1--TEST--
2instanceof shouldn't call autoloader
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