Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47980 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78928 invoked from network); 15 Apr 2010 12:04:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Apr 2010 12:04:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=jerome@loyet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jerome@loyet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain loyet.net from 209.85.218.219 cause and error) X-PHP-List-Original-Sender: jerome@loyet.net X-Host-Fingerprint: 209.85.218.219 mail-bw0-f219.google.com Received: from [209.85.218.219] ([209.85.218.219:47899] helo=mail-bw0-f219.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/C0-20494-4C007CB4 for ; Thu, 15 Apr 2010 08:04:20 -0400 Received: by bwz19 with SMTP id 19so14848bwz.1 for ; Thu, 15 Apr 2010 05:04:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.135.83 with HTTP; Thu, 15 Apr 2010 05:04:16 -0700 (PDT) In-Reply-To: <7.0.1.0.2.20100415145225.0e2a5cd0@zend.com> References: <3bea96c41003301008va8ea1cbif8c16be11451eaf8@mail.gmail.com> <4BC4BBF9.4000903@oracle.com> <7.0.1.0.2.20100413215139.0dbcfdd8@zend.com> <7.0.1.0.2.20100415140350.0e2a5290@zend.com> <7.0.1.0.2.20100415141933.0e2a53d8@zend.com> <7.0.1.0.2.20100415143309.0e2a5a40@zend.com> <7.0.1.0.2.20100415145225.0e2a5cd0@zend.com> Date: Thu, 15 Apr 2010 14:04:16 +0200 Received: by 10.239.173.206 with SMTP id g14mr7062hbf.67.1271333056897; Thu, 15 Apr 2010 05:04:16 -0700 (PDT) Message-ID: To: Zeev Suraski Cc: Ferenc Kovacs , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] FPM INI syntax From: jerome@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=) Le 15 avril 2010 13:55, Zeev Suraski a =E9crit : > At 14:47 15/04/2010, J=E9r=F4me Loyet wrote: >> >> > 1. =A0In the .ini parser; =A0That means it'll work for anything that u= ses >> > the >> > .ini parser, including php.ini, fpm.ini, parse_ini_file(), etc. >> >> It's a huge change, it's has to be tested a lot ... too much complicated= =3D > > Agreed that it's a big change, but it's certainly possible. =A0Requires i= ts > own discussion... +1 it's totaly out of the scope of this discussion. when I said it's too much complicated, I just meant that it's too much complicated for the need we're trying to discuss here. > >> > 2. =A0In the FPM code that uses the .ini parser; =A0Much like it pays >> > attention >> > to 'daemonize' and 'error_log', it can pay attention to 'include'. >> >> The easiest et most logical solution. FPM wants include in its ini >> configuration file and it's the only part of PHP which need that at >> the moment. Since FPM has been integrated info PHP, it =A0never touched >> something but its own code ... try to stay that way ! > > Is there an inherent reason why include is really necessary for fpm.ini? The reason we want includes is for simplifing fpm configuration file. When you have dozen of pools, the conf file becomes very long and reading/updating it is a pain in the ass. Moreover, there are many directives which are common to all the pools (or group of pools). With includes, you can set those directives once and then, includes all of them at once. There is includes in configuration files for many many server application (apache, nginx, ...). Developping application is one thing, hosting them is another thing which is sometimes forgotten by developpers.