xref: /PHP-5.4/Zend/tests/bug52060.phpt (revision 5eb64a49)
1--TEST--
2Bug #52060 (Memory leak when passing a closure to method_exists())
3--FILE--
4<?php
5
6$closure = function($a) { echo $a; };
7
8var_dump(method_exists($closure, '__invoke')); // true
9
10?>
11--EXPECT--
12bool(true)
13