summaryrefslogtreecommitdiff
path: root/Zend/tests/gc_006.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/gc_006.phpt')
-rw-r--r--Zend/tests/gc_006.phpt14
1 files changed, 5 insertions, 9 deletions
diff --git a/Zend/tests/gc_006.phpt b/Zend/tests/gc_006.phpt
index 4ba0d9267..c633d038f 100644
--- a/Zend/tests/gc_006.phpt
+++ b/Zend/tests/gc_006.phpt
@@ -1,5 +1,7 @@
--TEST--
GC 006: Simple array-object cycle
+--INI--
+zend.enable_gc=1
--FILE--
<?php
$a = new stdClass();
@@ -10,18 +12,12 @@ unset($a);
var_dump(gc_collect_cycles());
echo "ok\n"
?>
---EXPECT--
-object(stdClass)#1 (1) {
+--EXPECTF--
+object(stdClass)#%d (1) {
["a"]=>
array(1) {
[0]=>
- &object(stdClass)#1 (1) {
- ["a"]=>
- array(1) {
- [0]=>
- *RECURSION*
- }
- }
+ *RECURSION*
}
}
int(2)