bug54305.phpt 462 B

12345678910111213141516171819202122
  1. --TEST--
  2. Bug #54305 (Crash in gc_remove_zval_from_buffer)
  3. --FILE--
  4. <?php
  5. class TestClass {
  6. public function methodWithArgs($a, $b) {
  7. }
  8. }
  9. abstract class AbstractClass {
  10. }
  11. $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs');
  12. echo $methodWithArgs++;
  13. ?>
  14. --EXPECTF--
  15. Method [ <user> public method methodWithArgs ] {
  16. @@ %sbug54305.php %d - %d
  17. - Parameters [2] {
  18. Parameter #0 [ <required> $a ]
  19. Parameter #1 [ <required> $b ]
  20. }
  21. }