mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
15 lines
301 B
Plaintext
15 lines
301 B
Plaintext
|
--TEST--
|
||
|
Bug #46205 (Closure - Memory leaks when ReflectionException is thrown)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$x = new reflectionmethod('reflectionparameter', 'export');
|
||
|
$y = function() { };
|
||
|
|
||
|
try {
|
||
|
$x->invokeArgs(new reflectionparameter('trim', 'str'), array($y, 1));
|
||
|
} catch (Exception $e) { }
|
||
|
?>
|
||
|
ok
|
||
|
--EXPECT--
|
||
|
ok
|