12345678910111213141516171819202122 |
- --TEST--
- Bug #80045: memleak after two set_exception_handler calls with __call
- --FILE--
- <?php
- class x {
- public function __construct(){
- set_exception_handler([$this, 'dummyExceptionHandler']);
- set_exception_handler([$this, 'dummyExceptionHandler']);
- set_error_handler([$this, 'dummyErrorHandler']);
- set_error_handler([$this, 'dummyErrorHandler']);
- }
- public function __call($m, $p) {}
- }
- new x;
- ?>
- ===DONE===
- --EXPECT--
- ===DONE===
|