Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35519 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80618 invoked by uid 1010); 15 Feb 2008 13:23:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80603 invoked from network); 15 Feb 2008 13:23:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Feb 2008 13:23:04 -0000 Authentication-Results: pb1.pair.com header.from=jani.taskinen@sci.fi; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@sci.fi; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sci.fi from 63.208.196.178 cause and error) X-PHP-List-Original-Sender: jani.taskinen@sci.fi X-Host-Fingerprint: 63.208.196.178 mho-01-bos.mailhop.org Received: from [63.208.196.178] ([63.208.196.178:60109] helo=mho-01-bos.mailhop.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/A8-26828-83295B74 for ; Fri, 15 Feb 2008 08:23:04 -0500 Received: from [81.22.163.71] (helo=[127.0.0.1]) by mho-01-bos.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JQ0Wn-0009yz-P1; Fri, 15 Feb 2008 13:22:58 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 81.22.163.71 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/qjBEOCu22SMN5ikzNxQ4Utj8SLNc4PNg= Message-ID: <47B59237.50403@sci.fi> Date: Fri, 15 Feb 2008 15:23:03 +0200 Reply-To: jani.taskinen@iki.fi User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Marcus Boerger CC: Dmitry Stogov , PHP Internals List , Andi Gutmans References: <971575499.20080209153315@marcus-boerger.de> <47B54F0C.2090700@zend.com> <1203067815.10500.5.camel@localhost.localdomain> <872209860.20080215122650@marcus-boerger.de> In-Reply-To: <872209860.20080215122650@marcus-boerger.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Conditional INI support From: jani.taskinen@sci.fi (Jani Taskinen) Marcus Boerger kirjoitti: > 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. What do you mean with 'good way' ? :) Just parse it strict like CPP does, so that any of these #if..#else..#elseif..#endif have to start from the first column in line, otherwise they're ignored.. (okay, CPP in SOME systems expects that.. :) My version of conditionals does just that. There's nothing special about it..:) Or I misunderstood what you meant with this. --Jani