mirror of
https://github.com/php/php-src.git
synced 2024-10-17 22:42:38 +00:00
16 lines
262 B
Plaintext
16 lines
262 B
Plaintext
|
--TEST--
|
||
|
GC 022: GC detach reference in executor's PZVAL_UNLOCK()
|
||
|
--INI--
|
||
|
error_reporting=0
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$a = array(array());
|
||
|
$a[0][0] =& $a[0];
|
||
|
$s = array(1) + unserialize(serialize(&$a[0]));
|
||
|
var_dump(gc_collect_cycles());
|
||
|
echo "ok\n"
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
int(1)
|
||
|
ok
|