summaryrefslogtreecommitdiff
path: root/Zend/tests/bug80045.phpt
blob: b53b8b0c2ac07746454d12b734c965bc2e1e9ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--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===