@ -1,5 +1,7 @@
--TEST--
GC 004: Simple array cycle
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = array();
GC 005: Simple object cycle
$a = new stdClass();
GC 006: Simple array-object cycle
GC 007: Unreferensed array cycle
$a = array(array());
GC 008: Unreferensed object cycle
GC 009: Unreferensed array-object cycle
GC 010: Cycle with reference to $GLOBALS
GC 011: GC and destructors
class Foo {
GC 012: collection of many loops at once
$a=array();
GC 013: Too many cycles in one array
GC 014: Too many cycles in one object
GC 015: Object as root of cycle
GC 016: nested GC calls
GC 017: GC and destructors with unset
class Node {
GC 018: GC detach with assign
GC 019: GC detach with assign by reference
GC 020: GC detach reference with assign
GC 021: GC detach reference with assign by reference
@ -2,6 +2,7 @@
GC 022: GC detach reference in executor's PZVAL_UNLOCK()
error_reporting=0
GC 023: Root buffer overflow (automatic collection)
GC 024: GC and objects with non-standard handlers
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
GC 025: Automatic GC on request shutdown
GC 027: GC and properties of internal classes
try {
GC 028: GC and destructors
GC 029: GC and destructors
GC 030: GC and exceptions in destructors
class foo {
@ -28,4 +30,4 @@ Next exception 'Exception' with message 'foobar' in %sgc_030.php:%d
Stack trace:
#0 %sgc_030.php(%d): foo->__destruct()
#1 {main}
thrown in %sgc_030.php on line %d