xref: /PHP-8.2/Zend/tests/bug78926.phpt (revision d30cd7d7)
1--TEST--
2Bug #78926: Segmentation fault on Symfony cache:clear
3--FILE--
4<?php
5
6spl_autoload_register(function($class) {
7    for ($i = 0; $i < 100; $i++) {
8        eval("class C$i {}");
9    }
10});
11
12try {
13    class B extends A {}
14} catch (Error $e) {
15    echo $e->getMessage(), "\n";
16}
17var_dump(class_exists('B', false));
18
19?>
20--EXPECT--
21Class "A" not found
22bool(false)
23