mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
15 lines
301 B
PHP
15 lines
301 B
PHP
--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
|