xref: /PHP-8.0/Zend/tests/bug26697.phpt (revision f8d79582)
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--EXPECT--
16{closure}(NotExistingClass)
17bool(false)
18{closure}(NotExistingClass), done
19bool(false)
20