php-8.0.30-src/Zend/tests/bug80045.phpt

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===