Re: [patch] Variables in .ini files

From: Date: Tue, 11 May 2004 03:56:50 +0000
Subject: Re: [patch] Variables in .ini files
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-9806@lists.php.net to get a copy of this message
I'll take a look at it. Thanks. At 01:20 PM 5/10/2004 -0700, Andrei Zmievski wrote:
This is a patch I'd like to propose for inclusion in PHP 5. It is very useful to be able to refer to other .ini variables when defining them. Things like concatenation and reusing the same dir in multiple places become possible. With the attached patch you can do things like: default_dir = "/home/www/apache" include_path = ".:" ${default_dir} "/htdocs" open_basedir = ${default_dir} "/share" Whitespace between variables and strings is optional. Strings don't have to be in quotes. If the variable is not found in the currently defined .ini hash, then the SAPI getenv() hook is used to see whether it exists there so you can refer to env variables this way. Patch is against latest Zend dir. - Andrei -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.internals (#9806) next »