bug54305.phpt 390 B

12345678910111213141516171819
  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. try {
  13. echo $methodWithArgs++;
  14. } catch (TypeError $e) {
  15. echo $e->getMessage(), "\n";
  16. }
  17. ?>
  18. --EXPECT--
  19. Cannot increment ReflectionMethod