mirror of
https://github.com/php/php-src.git
synced 2026-04-11 18:13:00 +02:00
When we change back the bucket key on a class linking failure, make sure to reload the bucket pointer, as the class table may have been reallocated in the meantime. Also remove a bogus bucket key change in anon class registration: We don't actually rename the class in this case anymore, the RTD key is already the final name.
23 lines
366 B
PHP
23 lines
366 B
PHP
--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)
|