php-src/Zend/tests/bug26697.phpt
2020-02-03 22:52:20 +01:00

20 lines
431 B
PHP

--TEST--
Bug #26697 (calling class_exists on a nonexistent class in autoloader results in segfault)
--FILE--
<?php
spl_autoload_register(function ($name) {
echo __METHOD__ . "($name)\n";
var_dump(class_exists('NotExistingClass'));
echo __METHOD__ . "($name), done\n";
});
var_dump(class_exists('NotExistingClass'));
?>
--EXPECT--
{closure}(NotExistingClass)
bool(false)
{closure}(NotExistingClass), done
bool(false)