mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
14 lines
169 B
Plaintext
14 lines
169 B
Plaintext
|
--TEST--
|
||
|
GC 018: GC detach with assign
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$a = array(array());
|
||
|
$a[0][0] =& $a[0];
|
||
|
$a = 1;
|
||
|
var_dump(gc_collect_cycles());
|
||
|
echo "ok\n"
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
int(1)
|
||
|
ok
|