RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-28 Thread derick
On Sat, 28 Sep 2002, Zeev Suraski wrote: > At 19:27 26/09/2002, David Viner wrote: > >If the term "include" is not a good keyword, I'm also happy to rework the > >patch to use any keyword the group prefers. "additional_ini" sounds good to > >me, and probably doesn't carry the other control-struc

RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-27 Thread Zeev Suraski
At 19:27 26/09/2002, David Viner wrote: >If the term "include" is not a good keyword, I'm also happy to rework the >patch to use any keyword the group prefers. "additional_ini" sounds good to >me, and probably doesn't carry the other control-structure baggage. I don't think that additional_ini c

RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-27 Thread Preston L. Bannister
I'd vote with Rasmus here. Adding an "include" statement (whatever it's called) looks to be very low risk for inclusion in the 4.3 release. I am a little uncomfortable with the auto-magic function to "include all files in directory". I've been bitten more than a few times by "magic" that didn't

RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-27 Thread Rasmus Lerdorf
> > + } > > + } > > + > > + > > + /* now free the resources we allocated to handle this include */ > > + if (php_included_ini_opened_path != NULL) { > > + efree(php_included_ini_opened_path); > > + } > > + > > +

RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-27 Thread derick
} > - strcat(php_ini_search_path, "."); > - } > -#endif > - > - /* Add binary directory */ > -#ifdef PHP_WIN32 > - binary_location = (char *) emalloc(MAXPATHLEN); > - if (GetModuleFileName

RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-27 Thread David Viner
orf'; 'Edin Kadribasic' Subject: RE: [PHP-DEV] [PATCH] include statement in php.ini file In general I agree with this proposal but I have some concerns, as I am not familiar with the ini code these may be unfounded, introducing it may well 1) Introduce Security Concerns depending

RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-27 Thread James Moore
In general I agree with this proposal but I have some concerns, as I am not familiar with the ini code these may be unfounded, introducing it may well 1) Introduce Security Concerns depending on the time the ini file is loaded (IF I have safe_mode = on then you include an ini file with safe_mod

RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-27 Thread David Viner
} - strcat(php_ini_search_path, default_location); -#endif - } + /* build the search path */ + free_ini_search_path = php_prepare_ini_search_path(&php_ini_search_path); PG(safe_mode) = 0; PG(open_basedir) = NULL; @@ -333,7 +612,7 @@

Re: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-27 Thread Rasmus Lerdorf
> > I'm not very concerned either way on the .ini extension > restriction. > > Let's go ahead and commit this with the "include" to > "additional_ini" name > > change. Perhaps the commit will stir up more feedback since there > has > > been so little. > > Some feedback: > > +1 for additional_ini=

Re: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-27 Thread Edin Kadribasic
> I'm not very concerned either way on the .ini extension restriction. > Let's go ahead and commit this with the "include" to "additional_ini" name > change. Perhaps the commit will stir up more feedback since there has > been so little. Some feedback: +1 for additional_ini=/path/to/new/additio

RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-27 Thread Rasmus Lerdorf
d probably doesn't carry the other control-structure baggage. > > > dave > > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 26, 2002 5:17 AM > To: Zeev Suraski > Cc: David Viner; Php-Dev@lists. php. net >

RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-26 Thread David Viner
---Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 5:17 AM To: Zeev Suraski Cc: David Viner; Php-Dev@lists. php. net Subject: RE: [PHP-DEV] [PATCH] include statement in php.ini file I suppose using a PHP keyword like include may lead to a

RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-26 Thread Rasmus Lerdorf
I suppose using a PHP keyword like include may lead to a desire for other PHP keywords, perhaps something like: additional_ini = /some/dir additional_ini = /some/file.ini Not sure why you want to limit it to one. Also, they can be nested, so in /some/dir/foo.ini you might have: additional_ini

RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-25 Thread Zeev Suraski
I'm concerned that adding this directive will make lead to control structures requirements. However, it is quite useful for modular deployment; So, my suggestion is: - Don't introduce 'include' - Introduce a special 'additional_ini_directory' (name subject to change) which will be read after

RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-25 Thread Rasmus Lerdorf
I don't see any obvious problems with this patch except for a couple of extrananeos changes. I was a bit indisposed last week and didn't really follow the discussion leading up to this, but I have read the archive. I agree that going full out with PHP-parsed .ini files is going too far, but being

RE: [PHP-DEV] [PATCH] include statement in php.ini file

2002-09-24 Thread David Viner
prepare_ini_search_path(&php_ini_search_path); PG(safe_mode) = 0; PG(open_basedir) = NULL; @@ -333,7 +605,7 @@ struct stat statbuf; if (!VCWD_STAT(sapi_module.php_ini_path_override, &statbuf)) { - if (!((statbuf.st_mode &am

[PHP-DEV] [PATCH] include statement in php.ini file

2002-09-24 Thread David Viner
Hi, I've been working with Brian France on a patch that will allow users to include other ini files from the php.ini (see http://marc.theaimsgroup.com/?t=10317976671&r=1&w=2 for earlier discussions). This patch allows the following functionality from the php.ini file: include = file