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