summaryrefslogtreecommitdiff
path: root/Zend/tests/bug78926.phpt
blob: a59692748b2d37352fe8dd3108eccd70206b5d17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Bug #78926: Segmentation fault on Symfony cache:clear
--FILE--
<?php

spl_autoload_register(function($class) {
    for ($i = 0; $i < 100; $i++) {
        eval("class C$i {}");
    }
});

try {
    class B extends A {}
} catch (Error $e) {
    echo $e->getMessage(), "\n";
}
var_dump(class_exists('B', false));

?>
--EXPECT--
Class "A" not found
bool(false)