1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 09:28:21 +02:00
Files
archived-php-src/ext/reflection/tests/bug46205.phpt
T
2020-02-03 22:52:20 +01:00

16 lines
387 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
--EXPECTF--
Deprecated: Function ReflectionParameter::export() is deprecated in %s on line %d
ok