mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
GC improvement
This commit is contained in:
parent
4631a5e2e1
commit
fd348ec43f
2 changed files with 439 additions and 349 deletions
|
@ -18,9 +18,11 @@ $a = new Foo();
|
||||||
$a->a = $a;
|
$a->a = $a;
|
||||||
unset($a);
|
unset($a);
|
||||||
var_dump(gc_collect_cycles());
|
var_dump(gc_collect_cycles());
|
||||||
|
var_dump(gc_collect_cycles());
|
||||||
echo "ok\n"
|
echo "ok\n"
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
-> int(1)
|
-> int(0)
|
||||||
|
int(1)
|
||||||
int(1)
|
int(1)
|
||||||
ok
|
ok
|
||||||
|
|
784
Zend/zend_gc.c
784
Zend/zend_gc.c
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue