|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-08-18 08:00 UTC] dmitry@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: dmitry
[2020-08-18 08:08 UTC] dmitry@php.net
[2020-08-18 08:08 UTC] dmitry@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
Description: ------------ Some SplFileInfo methods don't restore original error handler in exceptional cases. This leads to memory leaks. Test script: --------------- <?php class BadSplFileInfo extends SplFileInfo { public function __construct() { } } $x = new BadSplFileInfo(); set_error_handler(function ($type, $msg, $file, $line, $context = []) { echo "ops\n"; }); try { var_dump($x->getLinkTarget()); } catch (Throwable $e) { echo $e->getMessage() . "\n"; } ?> Expected result: ---------------- Object not initialized Actual result: -------------- Object not initialized Zend/zend_closures.c(479) : Freeing 0xf3c5d380 (204 bytes)