diff options
Diffstat (limited to 'Zend/tests/gc_039.phpt')
-rw-r--r-- | Zend/tests/gc_039.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/gc_039.phpt b/Zend/tests/gc_039.phpt new file mode 100644 index 0000000000..0837e7e01e --- /dev/null +++ b/Zend/tests/gc_039.phpt @@ -0,0 +1,15 @@ +--TEST-- +GC 039: Garbage created by replacing argument send by reference +--SKIPIF-- +<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?> +--INI-- +zend.enable_gc = 1 +--FILE-- +<?php +$out = new stdClass; +$out->x = $out; +mb_parse_str("a=b", $out); +var_dump(gc_collect_cycles()); +?> +--EXPECT-- +int(1) |