mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
18 lines
275 B
PHP
18 lines
275 B
PHP
--TEST--
|
|
Bug #78999 (Cycle leak when using function result as temporary)
|
|
--FILE--
|
|
<?php
|
|
function get() {
|
|
$t = new stdClass;
|
|
$t->prop = $t;
|
|
return $t;
|
|
}
|
|
var_dump(get());
|
|
var_dump(gc_collect_cycles());
|
|
--EXPECT--
|
|
object(stdClass)#1 (1) {
|
|
["prop"]=>
|
|
*RECURSION*
|
|
}
|
|
int(1)
|