Re: [PHP4BETA] cvs: php4 /ext/standard/

From: Date: Mon, 08 May 2000 13:26:54 +0000
Subject: Re: [PHP4BETA] cvs: php4 /ext/standard/
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-14674@lists.php.net to get a copy of this message
At a minimum, it needs a SAFE_MODE check in there, and SHOULD be configurable via the ini file such as 'DL_ALLOW_ABS_DIR'. Allowing absolute paths in dl would be a bad thing in a shared environment, but as long as configurability is there, it doesn't hurt to have it. thies@digicol.de wrote: > > On Mon, May 08, 2000 at 08:12:28AM -0000, Thies C. Arntzen wrote: > > thies Mon May 8 01:12:28 2000 EDT > > > > Modified files: > > /php4/ext/standard dl.c > > Log: > > (php_dl) treat path as absolute if it starts with '/' > > do we all agree on this change or was it intended that you > cannot load an extension outside the PG(extension_dir). > > > > > > > Index: php4/ext/standard/dl.c > > diff -u php4/ext/standard/dl.c:1.38 php4/ext/standard/dl.c:1.39 > > --- php4/ext/standard/dl.c:1.38 Tue May 2 11:46:19 2000 > > +++ php4/ext/standard/dl.c Mon May 8 01:12:28 2000 > > @@ -84,7 +84,7 @@ > > PLS_FETCH(); > > ELS_FETCH(); > > > > - if (PG(extension_dir) && PG(extension_dir)[0]){ > > + if (PG(extension_dir) && PG(extension_dir)[0] && > > (file->value.str.val[0] != '/')){ > > int extension_dir_len = strlen(PG(extension_dir)); > > > > libpath = emalloc(extension_dir_len+file->value.str.len+2); > > > > > > > > -- > > PHP 4.0 Beta Mailing List > > <http://www.php.net/version4/> > > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > > For additional commands, e-mail: php4beta-help@lists.php.net > > To contact the list administrators, e-mail: php4beta-admin@lists.php.net > > -- > > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" > Digital Collections Phone +49 40 235350 Fax +49 40 23535180 > Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.version4 (#14674) next »