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