bug69227.phpt 221 B

1234567891011121314
  1. --TEST--
  2. Bug #69227 (Use after free in zval_scan caused by spl_object_storage_get_gc)
  3. --INI--
  4. zend.enable_gc=1
  5. --FILE--
  6. <?php
  7. $s = new SplObjectStorage();
  8. $s->attach($s);
  9. gc_collect_cycles();
  10. echo "ok";
  11. ?>
  12. --EXPECT--
  13. ok