Patch test2.phpt for Performance problem Bug #60139
Patch version 2011-10-28 14:24 UTC
Return to Bug #60139 |
Download this patch
Patch Revisions:
Developer: arnaud.lb@gmail.com
--TEST--
Closure and GC - 2 (bug #60139)
--FILE--
<?php
class c {
public $foo;
public function __construct()
{
$this->foo = get_closure($this);
}
public function __destruct()
{
echo "destruct\n";
}
}
function get_closure($x) {
return function() use ($x) {};
}
new c;
gc_collect_cycles();
echo "end\n";
--EXPECT--
destruct
end
|