Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / reflection / tests / bug46205.phpt
blobef7a692cb7da181801932c6a8add65f6371aeed7
1 --TEST--
2 Bug #46205 (Closure - Memory leaks when ReflectionException is thrown)
3 --FILE--
4 <?php
5 $x = new reflectionmethod('reflectionparameter', 'export');
6 $y = function() { };
8 try {
9         $x->invokeArgs(new reflectionparameter('trim', 'str'), array($y, 1));
10 } catch (Exception $e) { }
13 --EXPECT--