|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-07-09 11:08 UTC] kalle@php.net
-Status: Open
+Status: Feedback
[2015-07-09 11:08 UTC] kalle@php.net
[2015-07-09 11:33 UTC] fred_brownuk at yahoo dot co dot uk
-Status: Feedback
+Status: Open
[2015-07-09 11:33 UTC] fred_brownuk at yahoo dot co dot uk
[2015-07-09 15:12 UTC] cmb@php.net
[2015-07-09 15:33 UTC] fred_brownuk at yahoo dot co dot uk
[2015-07-10 09:00 UTC] mike@php.net
-Status: Open
+Status: Verified
-Assigned To:
+Assigned To: laruence
[2015-07-10 09:00 UTC] mike@php.net
[2015-08-01 18:28 UTC] pierrick@php.net
-Assigned To: laruence
+Assigned To: pierrick
[2015-08-01 18:55 UTC] pierrick@php.net
[2015-08-01 18:55 UTC] pierrick@php.net
-Status: Verified
+Status: Closed
[2015-08-04 20:54 UTC] ab@php.net
[2016-07-20 11:37 UTC] davey@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ On both 7.0.0alpha1 and 7.0.0alpha2 the curl multi interface is holding onto resources. A curl handle added to a multi handle with curl_multi_add_handle() should be fully independent once released from the multi handle with curl_multi_remove_handle(). Curl handles are not being released properly. Repeated use of the multi interface is leaking memory. Test script: --------------- // curl multi holding onto curl handles $mh=curl_multi_init(); $ch = curl_init(); curl_multi_add_handle($mh, $ch); curl_multi_remove_handle($mh, $ch); var_dump($ch); curl_close($ch); var_dump($ch); curl_multi_close($mh); // show memory leak for ($l=0; $l<10; $l++) { $mh=curl_multi_init(); $ch = curl_init(); curl_multi_add_handle($mh, $ch); curl_multi_remove_handle($mh, $ch); curl_close($ch); curl_multi_close($mh); echo memory_get_usage().PHP_EOL; } Expected result: ---------------- resource(5) of type (curl) resource(5) of type (Unknown) 374192 374192 374192 374192 374192 374192 374192 374192 374192 374192 Actual result: -------------- resource(5) of type (curl) resource(5) of type (curl) 374192 374536 374560 374584 374608 375272 375296 375320 375344 375368