Turn on gc before we test it

This commit is contained in:
Rasmus Lerdorf 2010-03-03 17:53:15 +00:00
parent 58e7da4400
commit 6a037fde9d
25 changed files with 49 additions and 0 deletions

View File

@ -1,5 +1,7 @@
--TEST--
GC 004: Simple array cycle
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = array();

View File

@ -1,5 +1,7 @@
--TEST--
GC 005: Simple object cycle
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = new stdClass();

View File

@ -1,5 +1,7 @@
--TEST--
GC 006: Simple array-object cycle
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = new stdClass();

View File

@ -1,5 +1,7 @@
--TEST--
GC 007: Unreferensed array cycle
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = array(array());

View File

@ -1,5 +1,7 @@
--TEST--
GC 008: Unreferensed object cycle
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = new stdClass();

View File

@ -1,5 +1,7 @@
--TEST--
GC 009: Unreferensed array-object cycle
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = array();

View File

@ -1,5 +1,7 @@
--TEST--
GC 010: Cycle with reference to $GLOBALS
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = array();

View File

@ -1,5 +1,7 @@
--TEST--
GC 011: GC and destructors
--INI--
zend.enable_gc=1
--FILE--
<?php
class Foo {

View File

@ -1,5 +1,7 @@
--TEST--
GC 012: collection of many loops at once
--INI--
zend.enable_gc=1
--FILE--
<?php
$a=array();

View File

@ -1,5 +1,7 @@
--TEST--
GC 013: Too many cycles in one array
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = array();

View File

@ -1,5 +1,7 @@
--TEST--
GC 014: Too many cycles in one object
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = new stdClass();

View File

@ -1,5 +1,7 @@
--TEST--
GC 015: Object as root of cycle
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = new stdClass();

View File

@ -1,5 +1,7 @@
--TEST--
GC 016: nested GC calls
--INI--
zend.enable_gc=1
--FILE--
<?php
class Foo {

View File

@ -1,5 +1,7 @@
--TEST--
GC 017: GC and destructors with unset
--INI--
zend.enable_gc=1
--FILE--
<?php
class Node {

View File

@ -1,5 +1,7 @@
--TEST--
GC 018: GC detach with assign
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = array(array());

View File

@ -1,5 +1,7 @@
--TEST--
GC 019: GC detach with assign by reference
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = array(array());

View File

@ -1,5 +1,7 @@
--TEST--
GC 020: GC detach reference with assign
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = array();

View File

@ -1,5 +1,7 @@
--TEST--
GC 021: GC detach reference with assign by reference
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = array();

View File

@ -2,6 +2,7 @@
GC 022: GC detach reference in executor's PZVAL_UNLOCK()
--INI--
error_reporting=0
zend.enable_gc=1
--FILE--
<?php
$a = array(array());

View File

@ -1,5 +1,7 @@
--TEST--
GC 023: Root buffer overflow (automatic collection)
--INI--
zend.enable_gc=1
--FILE--
<?php
$a=array();

View File

@ -1,5 +1,7 @@
--TEST--
GC 024: GC and objects with non-standard handlers
--INI--
zend.enable_gc=1
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--

View File

@ -1,5 +1,7 @@
--TEST--
GC 025: Automatic GC on request shutdown
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = array(array());

View File

@ -1,5 +1,7 @@
--TEST--
GC 028: GC and destructors
--INI--
zend.enable_gc=1
--FILE--
<?php
class Foo {

View File

@ -1,5 +1,7 @@
--TEST--
GC 029: GC and destructors
--INI--
zend.enable_gc=1
--FILE--
<?php
class Foo {

View File

@ -1,5 +1,7 @@
--TEST--
GC 030: GC and exceptions in destructors
--INI--
zend.enable_gc=1
--FILE--
<?php
class foo {