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