Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53739 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70966 invoked from network); 3 Jul 2011 23:26:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jul 2011 23:26:21 -0000 Authentication-Results: pb1.pair.com header.from=giovanni.g@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=giovanni.g@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.42 as permitted sender) X-PHP-List-Original-Sender: giovanni.g@gmail.com X-Host-Fingerprint: 209.85.210.42 mail-pz0-f42.google.com Received: from [209.85.210.42] ([209.85.210.42:35438] helo=mail-pz0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/C5-38350-C9AF01E4 for ; Sun, 03 Jul 2011 19:26:20 -0400 Received: by pzk37 with SMTP id 37so719253pzk.29 for ; Sun, 03 Jul 2011 16:26:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=I3z+AnGyWdDhI4WPmKab9kGpt9qHmRDlVLMIQb+2AKs=; b=hLLW1jVYA9n0mHfvzvJs8ct1IB2D/r5O4QIPoNPQN4l1cPgMVdmiq+xXNyE+uNNb+t QCFOVH5U2snniWLZXF8U52vgJ1mnfKfEhmMwbKNFmOMgloGX35RU9N/32uNrEx8kwRbI Q9UlrdJCXR6eUVYb1fR/qzZDiKZIueGaTfnl0= MIME-Version: 1.0 Received: by 10.143.96.17 with SMTP id y17mr2618524wfl.301.1309735577241; Sun, 03 Jul 2011 16:26:17 -0700 (PDT) Sender: giovanni.g@gmail.com Received: by 10.143.83.12 with HTTP; Sun, 3 Jul 2011 16:26:17 -0700 (PDT) In-Reply-To: <4E10D453.9060606@daylessday.org> References: <4E10D453.9060606@daylessday.org> Date: Mon, 4 Jul 2011 01:26:17 +0200 X-Google-Sender-Auth: YvKRl5v0pfIV2lkW0NV4RdKBimk Message-ID: To: Antony Dovgal Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Big patch for FPM (config and initialization) From: giovanni@giacobbi.net (Giovanni Giacobbi) On Sun, Jul 3, 2011 at 22:42, Antony Dovgal wrote: > On 07/03/2011 04:50 AM, Giovanni Giacobbi wrote: >> >> Detailed changelog of the patch: >> - Renamed options "pm.status_path", "ping.path", "ping.response" into >> a new logical group "diagnostics", so they are now respectively: >> =A0 =A0 "diagnostics.status_path", "diagnostics.ping_path", >> "diagnostics.ping_response". > > I'm not quite sure renaming config options would help anybody, in my opin= ion > it would do more harm than good. > I personally would certainly expect my existing config files to continue = to > work after upgrade to 5_4. > Yes, we're changing '3' to '4' in the version number, but that doesn't me= an > we can just go ahead and break the config file. > In fact I don't break them, probably I should've specified it more clearly, but the previous names are still well accepted: + /* Backward compatibility options, to be removed in the next major releas= e */ + { "ping.path", &fpm_conf_set_string, WPO(diag_ping_path) }, + { "ping.response", &fpm_conf_set_string, WPO(diag_ping_response) }, + { "pm.status_path", &fpm_conf_set_string, WPO(diag_status_path) }, + I can also add a deprecated warning at boot time if you wish. Anyway, the patch is too big, I admit, if you don't want to accept the change name I can create another patch without it. But the first time I read the config file I had a strong feeling that pm.status_path and ping_path were related that's why i set them to: /somesecretname/fpm-status /somesecretname/fpm-ping Aren't you doing something like that too? About the testing, well it works, but I didn't test it thoroughly. Actually I already found a couple of bugs. Who is the official maintainer of the FPM? If he is OK to merge it then I will do a very careful test and I will also write some test cases for the config file parsing (not sure if there is a test suite for that already, didn't check carefully). Thank you for your positive feedback :) --=20 Giovanni Giacobbi