Re: [RFC] Conditional INI support

From: Date: Fri, 15 Feb 2008 13:27:23 +0000
Subject: Re: [RFC] Conditional INI support
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-35520@lists.php.net to get a copy of this message
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

« previous php.internals (#35520) next »