bug46205.phpt 301 B

1234567891011121314
  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. try {
  8. $x->invokeArgs(new reflectionparameter('trim', 'str'), array($y, 1));
  9. } catch (Exception $e) { }
  10. ?>
  11. ok
  12. --EXPECT--
  13. ok