mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Second pass through `Zend/tests/bug*` to organize the tests. Move tests to existing sub directories, and create some new sub directories: * `ArrayAccess` * `autoload` * `clone` * `serialize` (also covers `unserialize()`) * `switch` Work towards GH-15631
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===
|