mirror of
https://github.com/php/php-src.git
synced 2025-01-21 03:03:41 +08:00
950d3d6e9b
This patch fixes a use (in zend_gc.c) after free (in spl_observer.c). See https://bugs.php.net/bug.php?id=69227
15 lines
272 B
PHP
15 lines
272 B
PHP
--TEST--
|
|
Bug #65967: SplObjectStorage contains corrupt member variables after garbage collection
|
|
--INI--
|
|
zend.enable_gc=1
|
|
--FILE--
|
|
<?php
|
|
$objstore = new SplObjectStorage();
|
|
gc_collect_cycles();
|
|
|
|
var_export($objstore);
|
|
?>
|
|
--EXPECT--
|
|
SplObjectStorage::__set_state(array(
|
|
))
|