Annotation of embedaddon/php/ext/reflection/tests/bug46205.phpt, revision 1.1
1.1 ! misho 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() { };
! 7:
! 8: try {
! 9: $x->invokeArgs(new reflectionparameter('trim', 'str'), array($y, 1));
! 10: } catch (Exception $e) { }
! 11: ?>
! 12: ok
! 13: --EXPECT--
! 14: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>