Le 15 avril 2010 12:09, Jérôme Loyet <jer...@loyet.net> a écrit :
> 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 idea
>
> everything else has been done and I'm working now on implementing includes.
>
> 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érôme Loyet <jer...@loyet.net> a écrit :
>> 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
>>
>

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to