23 lines
476 B
PHP
23 lines
476 B
PHP
--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===
|