xref: /PHP-7.3/Zend/tests/bug26697.phpt (revision ded3d984)
1--TEST--
2Bug #26697 (calling class_exists on a nonexistent class in __autoload results in segfault)
3--FILE--
4<?php
5
6spl_autoload_register(function ($name) {
7	echo __METHOD__ . "($name)\n";
8	var_dump(class_exists('NotExistingClass'));
9	echo __METHOD__ . "($name), done\n";
10});
11
12var_dump(class_exists('NotExistingClass'));
13
14?>
15===DONE===
16--EXPECT--
17{closure}(NotExistingClass)
18bool(false)
19{closure}(NotExistingClass), done
20bool(false)
21===DONE===
22