mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
23 lines
373 B
PHP
23 lines
373 B
PHP
--TEST--
|
|
Bug #69108 ("Segmentation fault" when (de)serializing SplObjectStorage)
|
|
--INI--
|
|
zend.enable_gc=1
|
|
--FILE--
|
|
<?php
|
|
$a = array();
|
|
$b = new SplObjectStorage();
|
|
for ($i = 10000; $i > 0; $i--) {
|
|
$object = new StdClass();
|
|
$a[] = $object;
|
|
$b->attach($object);
|
|
}
|
|
|
|
$c = serialize(array($a, $b));
|
|
$d = unserialize($c);
|
|
|
|
unset($d);
|
|
echo "ok";
|
|
?>
|
|
--EXPECT--
|
|
ok
|