xref: /PHP-5.5/ext/spl/tests/bug69227.phpt (revision ed59370f)
1--TEST--
2Bug #69227 (Use after free in zval_scan caused by spl_object_storage_get_gc)
3--INI--
4zend.enable_gc=1
5--FILE--
6<?php
7
8$s = new SplObjectStorage();
9$s->attach($s);
10gc_collect_cycles();
11echo "ok";
12?>
13--EXPECT--
14ok
15