Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74922 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81792 invoked from network); 16 Jun 2014 12:54:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2014 12:54:13 -0000 Authentication-Results: pb1.pair.com header.from=petercowburn@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=petercowburn@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.173 as permitted sender) X-PHP-List-Original-Sender: petercowburn@gmail.com X-Host-Fingerprint: 209.85.216.173 mail-qc0-f173.google.com Received: from [209.85.216.173] ([209.85.216.173:42271] helo=mail-qc0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/2A-12705-3F8EE935 for ; Mon, 16 Jun 2014 08:54:11 -0400 Received: by mail-qc0-f173.google.com with SMTP id l6so7563224qcy.4 for ; Mon, 16 Jun 2014 05:54:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=aaI4Ha+uNd5wkxm2apOh4a2ME23i7tayvYkXIaOfD4s=; b=ELfFl9nO0JY5zJor/gvzd0Kfa4vxCTznQcSLX+O81jhYhObE8HGiAtmwlsy+fDRoqp TDk0yM53rwo8zSx4SpsiyE8hO/hUB88gP3fiV02vJANXWH16859aoRePKWWudBzM6GrB yNmGjI/p7pjmu1p24oBK2rW/YIkWsdqRtChG1NlMaa/2LZOVpJGRJJe8TAOunAxr4uO1 UMt695zVCJEGNKigAVbou5JUVNsHm3lnJPs+9Jou0dzc9dGYutxJUjB+y4iJPoyzXfba b+9Pc2XDUSpNGZLNIWUK2DFmSCCUCpm0+oQdXbXk6in1YOUPlrYaWfXzSff0AC34jZSJ UWBg== X-Received: by 10.140.94.225 with SMTP id g88mr3994332qge.101.1402923248926; Mon, 16 Jun 2014 05:54:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.173.99 with HTTP; Mon, 16 Jun 2014 05:53:28 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Jun 2014 13:53:28 +0100 Message-ID: To: Pascal Chevrel Cc: PHP internals Content-Type: multipart/alternative; boundary=001a113a7f16e643cf04fbf3851d Subject: Re: [PHP-DEV] memory_limit default From: petercowburn@gmail.com (Peter Cowburn) --001a113a7f16e643cf04fbf3851d Content-Type: text/plain; charset=UTF-8 On 16 June 2014 12:50, Pascal Chevrel 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 > > --001a113a7f16e643cf04fbf3851d--