dis-bench / src /php /php-src /Zend /tests /autoload /bug26697.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
444 Bytes
--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'));
?>
--EXPECTF--
{closure:%s:%d}(NotExistingClass)
bool(false)
{closure:%s:%d}(NotExistingClass), done
bool(false)