Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48032 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10449 invoked from network); 21 Apr 2010 08:53:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Apr 2010 08:53:54 -0000 Authentication-Results: pb1.pair.com header.from=jerome@loyet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jerome@loyet.net; spf=permerror; 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:61386] helo=mail-bw0-f219.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/22-30950-B1DBECB4 for ; Wed, 21 Apr 2010 04:53:51 -0400 Received: by bwz19 with SMTP id 19so5213bwz.1 for ; Wed, 21 Apr 2010 01:53:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.134.152 with HTTP; Wed, 21 Apr 2010 01:48:13 -0700 (PDT) In-Reply-To: References: <3bea96c41003301008va8ea1cbif8c16be11451eaf8@mail.gmail.com> Date: Wed, 21 Apr 2010 10:48:13 +0200 Received: by 10.204.22.6 with SMTP id l6mr6872151bkb.163.1271839694056; Wed, 21 Apr 2010 01:48:14 -0700 (PDT) Message-ID: To: php-dev Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [RFC] FPM INI syntax From: jerome@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=) Le 17 avril 2010 18:43, J=E9r=F4me Loyet a =E9crit : > > Le 15 avril 2010 12:09, J=E9r=F4me Loyet a =E9crit : > > hi > > > > I made the first release of the patch to convert fpm syntax from xml to= ini. > > > > Everything is in the RFC: http://wiki.php.net/rfc/fpm/ini_syntax > > The patch is directly viewable at the following address: > > http://www.fatbsd.com/fpm/fpm-ini-v1.patch > > > > This patch does not make everything described in the RFC: > > - the include directive is not yet implemented because the > > zend_ini_parser is not able to handle recursive calls (because of the > > the state env which is global) > > - the reference system which is complex and I'm not sure it's a good id= ea > > > > everything else has been done and I'm working now on implementing inclu= des. > > > > As it's a huge patch, I won't commit it directly so if some of you can > > make comments it would be great. > > I just finished adding the include feature to the ini syntax for FPM. > The patch is available here: > http://www.fatbsd.com//fpm/fpm-ini-v2.patch > > As the zend_ini_parser_file and zend_ini_parser_string functions can't > be called recursively, I made FPM read the file line by line. I then > call zend_ini_parser_string for each line. That permits me to handle > the recursivity. It's not that clean but it works without having > Zend/* or main/* changed. > > The include supports also glob(3) syntax. > > Any comments are welcome about the patch. Hi guys, If there is no comments, I'll commit the patch later this day. ++ Jerome > > ++ Jerome > > > > > thx guys > > ++ Jerome > > > > Le 30 mars 2010 19:08, J=E9r=F4me Loyet a =E9crit : > >> Hi guys, > >> > >> As dreamcast4 advises me in the previous FPM conversation, I just > >> wrote the RFC for the FPM INI syntax. > >> > >> It can be read here: http://wiki.php.net/rfc/fpm/ini_syntax > >> > >> Tell me what you think. > >> > >> ++ Jerome > >> > >