mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
22 lines
444 B
PHP
22 lines
444 B
PHP
--TEST--
|
|
Bug #26697 (calling class_exists on a nonexistent class in __autoload 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'));
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
{closure}(NotExistingClass)
|
|
bool(false)
|
|
{closure}(NotExistingClass), done
|
|
bool(false)
|
|
===DONE===
|