1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/spl/tests/SplObjectStorage/bug69227.phpt

15 lines
224 B
PHP

--TEST--
Bug #69227 (Use after free in zval_scan caused by spl_object_storage_get_gc)
--INI--
zend.enable_gc=1
--FILE--
<?php
$s = new SplObjectStorage();
$s->offsetSet($s);
gc_collect_cycles();
echo "ok";
?>
--EXPECT--
ok