Bigger HTTP downloads with curl class run out of memory
|Reported by:||hakre||Owned by:|
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.