Lower memory limit for php5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Fix Released
|
Medium
|
Soren Hansen |
Bug Description
Binary package hint: php5
History: Up until (and including) Edgy, we had a memory_limit for all the php5 variants (libapache2-
However, 128M is a *very* high limit for just a single php script. It turns out that php (upstream) used to not enforce memory_limit at all by default, but they do now. So from their perspective, the 128M memory_limit is a conservative choice, actually. We (Ubuntu and Debian), however, have had the limit at 8M for quite a few years, IIRC, and I think it should stay that way. So, for Hardy, we should lower the memory_limit for libapache2-mod-php5 and php5-cgi to 8M and php5-cli to 32M. This bug is here to remind us to do so.
Seeing as Feisty had 1232M for -cli and 128M for the others, and gutsy had 128M for all of them for most of the development cycle, making this change now (two weeks before gutsy releases) is likely to cause problems for anyone who needs a memory_limit > 8M.
Related branches
CVE References
Changed in php5: | |
assignee: | nobody → shawarma |
importance: | Undecided → Medium |
status: | New → Triaged |
Attention: we should not go back to 8M, which would be too low, because the reporting of used memory has changed also. From the changelog of 5.2.0: "Increased default memory limit to 16 megabytes to accommodate for a more accurate memory utilization measurement."