Skip to content

Commit 388624d

Browse files
committed
These tests all have intentional circular references
and they will leak and cause failures unless gc is enabled
1 parent 6093c93 commit 388624d

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

Zend/tests/bug63055.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #63055 (Segfault in zend_gc with SF2 testsuite)
3+
--INI--
4+
zend.enable_gc=1
35
--FILE--
46
<?php
57
/* the default gc root size is 10,000 */

Zend/tests/bug64896.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #64896 (Segfault with gc_collect_cycles using unserialize on certain objects)
3+
--INI--
4+
zend.enable_gc=1
35
--FILE--
46
<?php
57
$bar = NULL;

Zend/tests/constant_arrays.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Constant arrays
3+
--INI--
4+
zend.enable_gc=1
35
--FILE--
46
<?php
57

Zend/tests/each_003.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Testing each() with recursion
3+
--INI--
4+
zend.enable_gc=1
35
--FILE--
46
<?php
57

Zend/tests/foreach_002.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Creating recursive array on foreach using same variable
3+
--INI--
4+
zend.enable_gc=1
35
--FILE--
46
<?php
57

Zend/tests/gc_032.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
GC 032: Crash in GC because of invalid reference counting
3+
--INI--
4+
zend.enable_gc=1
35
--FILE--
46
<?php
57
$a = array();

Zend/tests/varSyntax/parenthesesDeref.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Dereferencing expression parentheses
3+
--INI--
4+
zend.enable_gc=1
35
--FILE--
46
<?php
57

0 commit comments

Comments
 (0)