php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #60139
Patch gc-closure2.diff revision 2011-10-31 11:04 UTC by dmitry@php.net
Patch gc-closure.diff revision 2011-10-31 11:04 UTC by dmitry@php.net
revision 2011-10-31 08:44 UTC by dmitry@php.net
Patch bug60139.php5.4.diff revision 2011-10-29 10:23 UTC by arnaud dot lb at gmail dot com
Patch test2.phpt revision 2011-10-28 14:24 UTC by arnaud dot lb at gmail dot com
Patch test1.phpt revision 2011-10-28 14:23 UTC by arnaud dot lb at gmail dot com

Patch test1.phpt for Performance problem Bug #60139

Patch version 2011-10-28 14:23 UTC

Return to Bug #60139 | Download this patch
Patch Revisions:

Developer: arnaud.lb@gmail.com

--TEST--
Closure and GC - 1 (bug #60139)
--FILE--
<?php

class c {

	public $foo;

	public function __construct()
	{
		$this->foo = function() {};
	}

	public function __destruct()
	{
		echo "destruct\n";
	}
}

new c;
gc_collect_cycles();


echo "end\n";

--EXPECT--
destruct
end
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 22:01:26 2024 UTC