bug80045.phpt 476 B

12345678910111213141516171819202122
  1. --TEST--
  2. Bug #80045: memleak after two set_exception_handler calls with __call
  3. --FILE--
  4. <?php
  5. class x {
  6. public function __construct(){
  7. set_exception_handler([$this, 'dummyExceptionHandler']);
  8. set_exception_handler([$this, 'dummyExceptionHandler']);
  9. set_error_handler([$this, 'dummyErrorHandler']);
  10. set_error_handler([$this, 'dummyErrorHandler']);
  11. }
  12. public function __call($m, $p) {}
  13. }
  14. new x;
  15. ?>
  16. ===DONE===
  17. --EXPECT--
  18. ===DONE===