Re: memory_limit default
| From: | Peter Cowburn | Date: | Mon, 16 Jun 2014 12:53:28 +0000 |
| Subject: | Re: memory_limit default | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-74922@lists.php.net to get a copy of this message | ||
On 16 June 2014 12:50, Pascal Chevrel <pascal.chevrel@free.fr> wrote:
> Hi internals people,
>
> I was curious to know why the memory limit in php.ini was set to 128MB so
> I digged into the repository history and I saw that it was bumped from 16MB
> to that value in 2006: https://github.com/php/php-src/commit/
> 3ffc1c8f4a1e4c1658f94038e009e226258a65a4#diff-
> 299b21e0851494929e62b81e8d91b5b3
>
> Since there is no reference to a bug in the commit and I couldn't find
> anything about it on the net, I thought I would ask at the source in
> internals.
>
> Was it changed because the defaut value was too low for PHP to work
> correctly? Or was the change done to reflect the state of hosting solutions
> back then? I am curious to know why 128 and not 64 or 256 actually. If this
> is the result of an analysis of the state of hosting, I am also wondering
> if 8 years later php.ini settings that depend on hardware like memory are
> still the right defaults.
>
See a (public) discussion from 2006 at
http://php.markmail.org/thread/kw7yzcr37j4xi7ab
>
> Thanks for your hindsight on this!
>
> Pascal
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>