[wp-trac] [WordPress Trac] #10765: Bigger HTTP downloads with curl class run out of memory
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 10 17:31:21 UTC 2009
#10765: Bigger HTTP downloads with curl class run out of memory
--------------------------+-------------------------------------------------
Reporter: hakre | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: General | Version: 2.8.4
Severity: normal | Keywords: needs-patch
--------------------------+-------------------------------------------------
With a memory limit of 64M downloading a 7MB zip file consumes so much
memory that the 64M limit is triggered.
It's wp-includes/http.php on line 13333 in trunk. the whole reponse is not
only loaded into the memory, it's splitted in parts then (that means at
least doubled).
That means: 7MB in curl memory + 7MB in the return value + 7MB in the
explode functions return. So at least three times the download filessize
(if not even more).
The exploded $part variable isn't used any longer. Looks like some code
has been forgotten there.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10765>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list