xref: /PHP-5.6/ext/reflection/tests/bug46205.phpt (revision f656c6fc)
1--TEST--
2Bug #46205 (Closure - Memory leaks when ReflectionException is thrown)
3--FILE--
4<?php
5$x = new reflectionmethod('reflectionparameter', 'export');
6$y = function() { };
7
8try {
9	$x->invokeArgs(new reflectionparameter('trim', 'str'), array($y, 1));
10} catch (Exception $e) { }
11?>
12ok
13--EXPECT--
14ok
15