summaryrefslogtreecommitdiff
path: root/tests/classes/autoload_007.phpt
blob: 4ea1f6de17a4f1a27fda52670404b47a6337d8fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Ensure instanceof does not trigger autoload.
--FILE--
<?php
spl_autoload_register(function ($name) {
  echo "In autoload: ";
  var_dump($name);
});

$a = new stdClass;
var_dump($a instanceof UndefC);
?>
--EXPECT--
bool(false)