#8149 closed defect (bug) (fixed)
Automatic upgrade runs out of memory
Reported by: | DD32 | Owned by: | |
---|---|---|---|
Milestone: | 2.7 | Priority: | normal |
Severity: | normal | Version: | 2.7 |
Component: | Upgrade/Install | Keywords: | dev-reviewed |
Focuses: | Cc: |
Description
It appears that for some people, 32MB of PHP memory_limit just isnt enough for the PclZip class to do its work
It might be an idea to set the memory limit in the unzip function to something higher (Like happens in the Thumbnail creation -- Since GD can use obscene ammounts of memory sometimes, it attempts to set it to 256MB memory_limit) to prevent these errors occuring half way through the upgrade decompression
Attachments (1)
Change History (6)
#2
@
16 years ago
- Keywords dev-reviewed added
+1
i doubt it's actually the unzipping that has swallowed all 32M but other stuff has just got us too close to the limit.
#3
@
16 years ago
Yeah, most of the 32M is used up by the rest of WP, But loading 7MB worth of strings in PHP definately takes its toll, along with the temporary variables & all that which is used internally by the class pushes it over the edge.
ryan: that patch is basically what i was thinking of myself, Wasnt sure 256 was needed, but setting it too high couldnt cause issues could it?
Sounds good.