Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35516 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54214 invoked by uid 1010); 15 Feb 2008 11:26:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54199 invoked from network); 15 Feb 2008 11:26:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Feb 2008 11:26:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:60096] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/86-26828-BF675B74 for ; Fri, 15 Feb 2008 06:26:51 -0500 Received: from dhcp-172-28-202-237.zrh.corp.google.com (unknown [193.142.125.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id BAEF81B365D; Fri, 15 Feb 2008 12:26:48 +0100 (CET) Date: Fri, 15 Feb 2008 12:26:50 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <872209860.20080215122650@marcus-boerger.de> To: Jani Taskinen CC: Dmitry Stogov , jani.taskinen@iki.fi, PHP Internals List , Andi Gutmans In-Reply-To: <1203067815.10500.5.camel@localhost.localdomain> References: <971575499.20080209153315@marcus-boerger.de> <47B54F0C.2090700@zend.com> <1203067815.10500.5.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Conditional INI support From: helly@php.net (Marcus Boerger) Hello Jani, Friday, February 15, 2008, 10:30:15 AM, you wrote: >> b) I think usage of square brackets is not a good idea, because they are >> commonly used to divide ini files into sections. Why not to use C >> syntax? (#if...) > I'd prefer that syntax too, it would be much clearer than mixing the > sections with this. It's also backwards compatible, lines prefixed with > # are simply ignored. I am fine with that if someone finds a good way to parse this. >> c) We can use just "value" insted of ${value} in conditions. > Yup. ${foobar} is actually not any "variable" per se, but just a > reference to existing ini entry in the file. And I don't think that > needs to change. To make this clear, I did not any syntax beside the conditionals. I just used what is there. If the example I gave was misleading, then sorry for that. >> e) We don't need to define special names, we can use internal PHP constants. > Yup, I mentioned this a couple of times already. :) Right, thus I dropped all that was not needed. Best regards, Marcus