]> granicus.if.org Git - php/commitdiff
Turn on gc before we test it
authorRasmus Lerdorf <rasmus@php.net>
Wed, 3 Mar 2010 17:53:15 +0000 (17:53 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Wed, 3 Mar 2010 17:53:15 +0000 (17:53 +0000)
26 files changed:
Zend/tests/gc_004.phpt
Zend/tests/gc_005.phpt
Zend/tests/gc_006.phpt
Zend/tests/gc_007.phpt
Zend/tests/gc_008.phpt
Zend/tests/gc_009.phpt
Zend/tests/gc_010.phpt
Zend/tests/gc_011.phpt
Zend/tests/gc_012.phpt
Zend/tests/gc_013.phpt
Zend/tests/gc_014.phpt
Zend/tests/gc_015.phpt
Zend/tests/gc_016.phpt
Zend/tests/gc_017.phpt
Zend/tests/gc_018.phpt
Zend/tests/gc_019.phpt
Zend/tests/gc_020.phpt
Zend/tests/gc_021.phpt
Zend/tests/gc_022.phpt
Zend/tests/gc_023.phpt
Zend/tests/gc_024.phpt
Zend/tests/gc_025.phpt
Zend/tests/gc_027.phpt
Zend/tests/gc_028.phpt
Zend/tests/gc_029.phpt
Zend/tests/gc_030.phpt

index ce6a94b79a1ef4010034258b2626b30856dd4fe8..8ff5bebfb2e673027339ffad27e2548a5b735ec7 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 004: Simple array cycle
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = array();
index 0660ded2f74c08c3e120ff148dfc559875ff31b6..97b368fce6ce8d4135ffedb5489634a670d63522 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 005: Simple object cycle
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = new stdClass();
index 4ba0d92672155853c2e61c647a1d0da1e86290ad..0b3a91e2f40d2e5e7ca9d5df6b5192f3de57d68e 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 006: Simple array-object cycle
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = new stdClass();
index 4baa5e666f4909e384d625e710966176a736ff53..1a45ecf1ed732acd0153bbff3301f0c87aaa1e75 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 007: Unreferensed array cycle
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = array(array());
index b62504bd274399c6a533e371ddf76a193ac06eed..e27a6b402ca6f96db91aafef5bb28c1bb0355535 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 008: Unreferensed object cycle
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = new stdClass();
index 02ee1ae03e5534c524fc45ec7da0ff5cfb83a2a6..fe703107ae2738baed8f6b3f4c010b4a9cf00638 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 009: Unreferensed array-object cycle
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = array();
index d39ef8a096cf5fdb27ce21b07fc5c46455c460c1..d08da356a2d3a57118e45865ec80c2a0e107b6db 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 010: Cycle with reference to $GLOBALS
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = array();
index 97819be23ec17b7d2bf7ebf4fa96b7f0450dfbd5..bcaf21e4d80ac054b858782710c1dba8253949a1 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 011: GC and destructors
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 class Foo {
index eff76ef31c1816dd2eba1219b9e8ebd64ce15b3f..f6c85389798709c6ad6dd8fff87c0e8b506a12e3 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 012: collection of many loops at once
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a=array();
index ddfa0e6ba53a5f09f817178e0d5a116990e69574..9209ca2b402188aaec05698ef311d2983ee51c80 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 013: Too many cycles in one array
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = array();
index 8167880f9cddfbf1b8a3d359d0b7f8d07e2e1d88..9f43fc8505a6477de39e783914d7c389feab1280 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 014: Too many cycles in one object
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = new stdClass();
index be3c5eb9dbcf80b39e327029bb8e5fca8db8e103..df85836ed89d70d5ae7751c89d2b2560e941a5a8 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 015: Object as root of cycle
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = new stdClass();
index 6d6a3630705123a514f38b4a7cf393faf4f98cef..f1e14dab1a8ce18b77e36ba65fb5efd602db979a 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 016: nested GC calls
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 class Foo {
index 9df04e280f85cad90466766736915b70b1be71a1..50be61025fd7710fcc0b7c6c53d048aac6fa7306 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 017: GC and destructors with unset
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 class Node {
index c202d8cdcf6debd116e9df68ed844087b8ee0dad..ef797ae6de60a8f31a4b032c7e42b6763b54bb7f 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 018: GC detach with assign
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = array(array());
index 12400d2f065085b83163e566f112fead027ebec9..17d0f73be2212db0a0ec7bb95a1fef74e352f59a 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 019: GC detach with assign by reference
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = array(array());
index 76e8aff9a9a50a69e7127f62d3d63e22f451618a..8f22e1b4b7234b857ed43bcfdda019fa5bb72b45 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 020: GC detach reference with assign
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = array();
index 4e6c750947c492755725d929d9b077cd76543516..3db702ac5c5d56abf60102e5971476f762c1c544 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 021: GC detach reference with assign by reference
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = array();
index 0418bf9a06632c0e8da6a3ecc21f19ae5b0700c1..5d7bb8494b69826ee2071822207863d90e9fe4f7 100644 (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());
index 3c0580129eff4f9ae316d47e957889a484aef564..6d6e1e6376bb9342d529d5cc7dffba4c7299624c 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 023: Root buffer overflow (automatic collection)
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a=array();
index ee734d628c8a851feea0ad7c410bd94dc46e7ef1..a139e95da47bb363e8c4f46ce1beabbf52c31a4e 100644 (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--
index 5ae652725757d5225cba43534d2b61c7117dca16..f838ed307fb369fbd3661b03e9491513ed51bab0 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 025: Automatic GC on request shutdown
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 $a = array(array());
index 9d2418eb4f46fd0bd8b52be5eee512383dcbd2b0..d499cc314a16ef1cb914fed4898f6ce67bfece58 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 027: GC and properties of internal classes
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 try {
index 6f330cb60b2784acc31154b7db6f4a3460606021..8dc70fc39706af6861f9be8c516e3d82b5618ea3 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 028: GC and destructors
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 class Foo {
index ea0660eca4fba855ba549334166f5e3c88c4fcbc..438053414a80ce3eb3e086c929d0e70a974fc34d 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 029: GC and destructors
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 class Foo {
index 27db29d981b10ea708fc6e98b85266d1a1f8b03f..ef044e0f03e6d84713977aee8e1d08936b62a5a5 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 GC 030: GC and exceptions in destructors
+--INI--
+zend.enable_gc=1
 --FILE--
 <?php
 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
\ No newline at end of file
+  thrown in %sgc_030.php on line %d