mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_splobjectstoragecontains_splobjectstorageattach_and_splobjectstoragedetach
15 lines
224 B
PHP
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
|