mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
18 lines
227 B
PHP
18 lines
227 B
PHP
--TEST--
|
|
GC 020: GC detach reference with assign
|
|
--INI--
|
|
zend.enable_gc=1
|
|
--FILE--
|
|
<?php
|
|
$a = array();
|
|
$a[0] =& $a;
|
|
$a[1] = array();
|
|
$a[1][0] =& $a[1];
|
|
$a = 1;
|
|
var_dump(gc_collect_cycles());
|
|
echo "ok\n"
|
|
?>
|
|
--EXPECT--
|
|
int(1)
|
|
ok
|