Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46363 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34479 invoked from network); 9 Dec 2009 14:55:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2009 14:55:52 -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.223.195 cause and error) X-PHP-List-Original-Sender: jerome@loyet.net X-Host-Fingerprint: 209.85.223.195 mail-iw0-f195.google.com Received: from [209.85.223.195] ([209.85.223.195:33856] helo=mail-iw0-f195.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/24-12387-77ABF1B4 for ; Wed, 09 Dec 2009 09:55:52 -0500 Received: by iwn33 with SMTP id 33so4813913iwn.29 for ; Wed, 09 Dec 2009 06:55:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.125.28 with SMTP id w28mr452604ibr.50.1260370548745; Wed, 09 Dec 2009 06:55:48 -0800 (PST) Date: Wed, 9 Dec 2009 15:55:48 +0100 Message-ID: <3bea96c40912090655i263115bbid923deb2bdf296a6@mail.gmail.com> To: php-dev Content-Type: text/plain; charset=ISO-8859-1 Subject: [PHP-FPM] syntax of configuration file From: jerome@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=) 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