mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
19 lines
322 B
PHP
19 lines
322 B
PHP
--TEST--
|
|
Bug #69534 (Cycle leaks through declared properties on internal classes)
|
|
--FILE--
|
|
<?php
|
|
class Node extends SplObjectStorage {
|
|
public $prop;
|
|
}
|
|
|
|
$node1 = new Node;
|
|
$node2 = new Node;
|
|
$node1->prop = $node2;
|
|
$node2->prop = $node1;
|
|
unset($node1);
|
|
unset($node2);
|
|
var_dump(gc_collect_cycles());
|
|
?>
|
|
--EXPECT--
|
|
int(2)
|