Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48000 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71044 invoked from network); 17 Apr 2010 16:43:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2010 16:43:33 -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:33717] helo=mail-bw0-f219.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/30-03544-435E9CB4 for ; Sat, 17 Apr 2010 12:43:32 -0400 Received: by bwz19 with SMTP id 19so308264bwz.1 for ; Sat, 17 Apr 2010 09:43:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.134.152 with HTTP; Sat, 17 Apr 2010 09:43:28 -0700 (PDT) In-Reply-To: References: <3bea96c41003301008va8ea1cbif8c16be11451eaf8@mail.gmail.com> Date: Sat, 17 Apr 2010 18:43:28 +0200 Received: by 10.204.126.88 with SMTP id b24mr2948658bks.79.1271522608727; Sat, 17 Apr 2010 09:43:28 -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 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 i= ni. > > 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 idea > > everything else has been done and I'm working now on implementing include= s. > > 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. ++ 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 >> >