xref: /PHP-7.2/tests/classes/autoload_007.phpt (revision 7af945e2)
1--TEST--
2Ensure instanceof does not trigger autoload.
3--FILE--
4<?php
5spl_autoload_register(function ($name) {
6  echo "In autoload: ";
7  var_dump($name);
8});
9
10$a = new stdClass;
11var_dump($a instanceof UndefC);
12?>
13--EXPECTF--
14bool(false)
15