xref: /php-src/Zend/tests/bug26697.phpt (revision 08b2ab22)
1--TEST--
2Bug #26697 (calling class_exists on a nonexistent class in autoloader results in segfault)
3--FILE--
4<?php
5
6spl_autoload_register(function ($name) {
7    echo __METHOD__ . "($name)\n";
8    var_dump(class_exists('NotExistingClass'));
9    echo __METHOD__ . "($name), done\n";
10});
11
12var_dump(class_exists('NotExistingClass'));
13
14?>
15--EXPECTF--
16{closure:%s:%d}(NotExistingClass)
17bool(false)
18{closure:%s:%d}(NotExistingClass), done
19bool(false)
20