mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
16 lines
194 B
PHP
16 lines
194 B
PHP
--TEST--
|
|
GC 018: GC detach with assign
|
|
--INI--
|
|
zend.enable_gc=1
|
|
--FILE--
|
|
<?php
|
|
$a = array(array());
|
|
$a[0][0] =& $a[0];
|
|
$a = 1;
|
|
var_dump(gc_collect_cycles());
|
|
echo "ok\n"
|
|
?>
|
|
--EXPECT--
|
|
int(1)
|
|
ok
|