|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-09-03 08:31 UTC] nikic@php.net
[2020-09-03 08:31 UTC] nikic@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 02:00:01 2025 UTC |
Description: ------------ php8 reports a memleak after two set_exception_handler calls combined with an __call Test script: --------------- class x { public function __construct(){ $h = set_exception_handler([$this, 'dummyExceptionHandler']); $h = set_exception_handler([$this, 'dummyExceptionHandler']); } public function __call($m, $p) {} } new x; Actual result: -------------- php-8.0.0beta2/Zend/zend_object_handlers.c(1120) : Freeing 0x00007fd2ab25d780 (232 bytes), script=/tmp/memleak.php === Total 1 memory leaks detected ===