summaryrefslogtreecommitdiff
path: root/Zend/tests/gc_019.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/gc_019.phpt')
-rw-r--r--Zend/tests/gc_019.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/Zend/tests/gc_019.phpt b/Zend/tests/gc_019.phpt
new file mode 100644
index 0000000..17d0f73
--- /dev/null
+++ b/Zend/tests/gc_019.phpt
@@ -0,0 +1,16 @@
+--TEST--
+GC 019: GC detach with assign by reference
+--INI--
+zend.enable_gc=1
+--FILE--
+<?php
+$a = array(array());
+$a[0][0] =& $a[0];
+$b = 1;
+$a =& $b;
+var_dump(gc_collect_cycles());
+echo "ok\n"
+?>
+--EXPECT--
+int(1)
+ok