File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug52060.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 2 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Bug #52060 (Memory leak when passing a closure to method_exists())
--FILE--
<?php

$closure = function($a) { echo $a; };

var_dump(method_exists($closure, '__invoke')); // true

?>
--EXPECT--
bool(true)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>