summaryrefslogtreecommitdiff
path: root/Zend/tests/bug26697.phpt
blob: 1692e388efb14d2c420c7cfa3f5edf42d90e4ce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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)