Hi guys,
I start a new thread about the syntax that should be used in php-fpm
to replace xml.
As discussed before, there is different point on view on this subject:
- INI to stay in the PHP philosophy / practicals
- nginx because it was the will of the original authors
We already discussed pros/cons of the two solutions. But why don't we
allow several syntaxes ? And let the end user to choose the better one
for its need ?
It's possible to imagine a default syntax: INI. and let the user to
choose another one. There is many ways to do so:
-
Add a prefix to the file choose from command line:
php-fpm -y ngx:/etc/php-fpm.conf
php-fpm -y nginx:/etc/php-fpm.conf
php-fpm -y ini:/etc/php-fpm.conf
php-fpm -y yaml:/etc/php-fpm.conf
... -
a Shebang in all configuration file (if none it's considered as ini)
#!ini
#!nginx
#!ngx
#!yaml -
autodetection
I think this could be a good idea which will, I hope, satisfy us all.
Moreoever, this could be easly extended from futures end-user needs.
I've already started (and almost finished) to hack php-fpm to move
from xml to nginx. I can and want make this work. But we have to meet
a general approval here.
Hope this help.
++ jerome
Hi,
I know little aobut FPM but:
We already discussed pros/cons of the two solutions. But why don't we
allow several syntaxes ? And let the end user to choose the better one
for its need ?
No. Several syntaxes makes testing harder, is more confusing to users
(read two tutorials and they use completely different syntaxes, ...) and
should be avoided. That just sounds like pain.
johannes
Hi!
I think multiple syntaxes is an unnecessary complication, and they don't
serve any useful purpose - neither of those syntaxes allow you to do
something important that others don't.
Stanislav Malyshev, Zend Software Architect
stas@zend.com http://www.zend.com/
(408)253-8829 MSN: stas@zend.com