mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
These tests all have intentional circular references
and they will leak and cause failures unless gc is enabled
This commit is contained in:
parent
6093c9370b
commit
388624d359
7 changed files with 14 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Bug #63055 (Segfault in zend_gc with SF2 testsuite)
|
Bug #63055 (Segfault in zend_gc with SF2 testsuite)
|
||||||
|
--INI--
|
||||||
|
zend.enable_gc=1
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* the default gc root size is 10,000 */
|
/* the default gc root size is 10,000 */
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Bug #64896 (Segfault with gc_collect_cycles using unserialize on certain objects)
|
Bug #64896 (Segfault with gc_collect_cycles using unserialize on certain objects)
|
||||||
|
--INI--
|
||||||
|
zend.enable_gc=1
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$bar = NULL;
|
$bar = NULL;
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Constant arrays
|
Constant arrays
|
||||||
|
--INI--
|
||||||
|
zend.enable_gc=1
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Testing each() with recursion
|
Testing each() with recursion
|
||||||
|
--INI--
|
||||||
|
zend.enable_gc=1
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Creating recursive array on foreach using same variable
|
Creating recursive array on foreach using same variable
|
||||||
|
--INI--
|
||||||
|
zend.enable_gc=1
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
GC 032: Crash in GC because of invalid reference counting
|
GC 032: Crash in GC because of invalid reference counting
|
||||||
|
--INI--
|
||||||
|
zend.enable_gc=1
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$a = array();
|
$a = array();
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Dereferencing expression parentheses
|
Dereferencing expression parentheses
|
||||||
|
--INI--
|
||||||
|
zend.enable_gc=1
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue