Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9806 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92871 invoked by uid 1010); 11 May 2004 03:57:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92816 invoked from network); 11 May 2004 03:57:12 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 11 May 2004 03:57:12 -0000 Received: (qmail 655 invoked from network); 11 May 2004 03:57:10 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 11 May 2004 03:57:10 -0000 Message-ID: <5.1.0.14.2.20040511065643.037cc380@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 11 May 2004 06:56:50 +0300 To: Andrei Zmievski ,internals@lists.php.net In-Reply-To: <20040510202035.GA11348@gravitonic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] [patch] Variables in .ini files From: andi@zend.com (Andi Gutmans) References: <20040510202035.GA11348@gravitonic.com> 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