Public bug reported:

Binary package hint: php5

History: Up until (and including) Edgy, we had a memory_limit for all
the php5 variants (libapache2-mod-php5, php5-cli, php5-cgi) of 8MB.
Early in the Feisty development cycle, Debian changed the memory_limit
for php5-cli to 32MB by doing a s/8M/32M/g on the template for
php5-cli's php.ini. We followed suit, but soon after, upstream (i.e.
php) changed the default to 128MB. This meant that 128MB was now turned
into 1232MB (due to s/8M/32M/) for php.cli, and the limit for the other
variant was set to 128M.  In Ubuntu we fixed the broken memory_limit
mangling (some time during the gutsy dev cycle), so all php5 variants
are now have a memory_limit of 128M in Ubuntu.

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.

** Affects: php5 (Ubuntu)
     Importance: Medium
     Assignee: Soren Hansen (shawarma)
         Status: Triaged

** Changed in: php5 (Ubuntu)
   Importance: Undecided => Medium
     Assignee: (unassigned) => Soren Hansen (shawarma)
       Status: New => Triaged
       Target: None => later

-- 
Lower memory limit for php5
https://bugs.launchpad.net/bugs/148871
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to