Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35521 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90819 invoked by uid 1010); 15 Feb 2008 13:57:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 90804 invoked from network); 15 Feb 2008 13:57:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Feb 2008 13:57:05 -0000 X-Host-Fingerprint: 82.41.135.70 82-41-135-70.cable.ubr02.glen.blueyonder.co.uk Received: from [82.41.135.70] ([82.41.135.70:21945] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/4A-26828-03A95B74 for ; Fri, 15 Feb 2008 08:57:04 -0500 Message-ID: <98.4A.26828.03A95B74@pb1.pair.com> To: internals@lists.php.net Date: Fri, 15 Feb 2008 13:56:10 +0000 Reply-To: nrixham@gmail.com User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 References: <971575499.20080209153315@marcus-boerger.de> <47B54F0C.2090700@zend.com> <1203067815.10500.5.camel@localhost.localdomain> <47B56334.9070007@zend.com> <1203070677.10500.12.camel@localhost.localdomain> <47B568A6.9060704@zend.com> <1158304008.20080215122414@marcus-boerger.de> <47B58B5D.9020301@zend.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 82.41.135.70 Subject: Re: [PHP-DEV] [RFC] Conditional INI support From: nrixham@gmail.com (Nathan Rixham) Chris Stockton wrote: > When I think INI I think constants. What happens when I log into some > server I have to debug some app instance and one of the first things I > might do is check the INI and I see. > > [IF ${value} == 1] > setting = 1 > [ELIF ${value} == 2] > [IF ${valuex} == 1] > setting = 1 > [ELIF ${valuex} == 2] > settingx = ${valuexc?1: ${valuexcl?1:2}} > [ELSE] > [ELSE] > setting = 3 > [ENDIF] > > What is setting and settingx? Do I have to debug within the app with > ini_get? Or can I dump the ini values very easily somewhere, I guess > php_info() maybe?I won't deny it could be useful specially for > cross-platform cross-version INI setup, but it just won't feel like a > configuration file anymore is all. I almost think you should just > allow PHP tags lol.. > > -Chris any chance of keeping this functionality out of the ini files either by: extended config files (like apache conf's), or changing to either an apache style conf/xml file to support if's; or indeed YAML just to jump on the YAML bandwagon, (use it as a prototype for future php yaml support?)