mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
19 lines
250 B
PHP
19 lines
250 B
PHP
--TEST--
|
|
GC 021: GC detach reference with assign by reference
|
|
--INI--
|
|
zend.enable_gc=1
|
|
--FILE--
|
|
<?php
|
|
$a = array();
|
|
$a[0] =& $a;
|
|
$a[1] = array();
|
|
$a[1][0] =& $a[1];
|
|
$b = 1;
|
|
$a =& $b;
|
|
var_dump(gc_collect_cycles());
|
|
echo "ok\n"
|
|
?>
|
|
--EXPECT--
|
|
int(2)
|
|
ok
|