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