mirror of
https://github.com/php/php-src.git
synced 2025-01-26 05:34:32 +08:00
26 lines
407 B
PHP
26 lines
407 B
PHP
--TEST--
|
|
Bug #66127 (Segmentation fault with ArrayObject unset)
|
|
--INI--
|
|
error_reporting = E_ALL & ~E_NOTICE
|
|
--FILE--
|
|
<?php
|
|
function crash()
|
|
{
|
|
set_error_handler(function () {});
|
|
$var = 1;
|
|
trigger_error('error');
|
|
$var2 = $var;
|
|
$var3 = $var;
|
|
trigger_error('error');
|
|
}
|
|
|
|
$items = new ArrayObject();
|
|
|
|
unset($items[0]);
|
|
unset($items[0][0]);
|
|
crash();
|
|
echo "Worked!\n";
|
|
?>
|
|
--EXPECT--
|
|
Worked!
|