xref: /PHP-7.4/Zend/tests/gc_039.phpt (revision 265c3ed6)
1--TEST--
2GC 039: Garbage created by replacing argument send by reference
3--SKIPIF--
4<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5--INI--
6zend.enable_gc = 1
7--FILE--
8<?php
9$out = new stdClass;
10$out->x = $out;
11mb_parse_str("a=b", $out);
12var_dump(gc_collect_cycles());
13?>
14--EXPECT--
15int(1)
16