Re: [Patch] PEAR::loadExtension

From: Date: Tue, 08 Jul 2003 05:53:49 +0000
Subject: Re: [Patch] PEAR::loadExtension
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18080@lists.php.net to get a copy of this message
On Mon Jul 07, 2003 at 10:0928PM +0100, Davey wrote: > Index: PEAR.php > =================================================================== > RCS file: /repository/php-src/pear/PEAR.php,v > retrieving revision 1.63 > diff -u -r1.63 PEAR.php > +++ PEAR.php 7 Jul 2003 21:08:20 -0000 > @@ -621,6 +621,10 @@ > function loadExtension($ext) > { > if (!extension_loaded($ext)) { > + // if either returns true dl() will produce a FATAL > error, stop that > + if ((ini_get('enable_dl') != 1) || > (ini_get('safe_mode') == 1)) { > + return false; > + } > if (OS_WINDOWS) { > $suffix = '.dll'; > } elseif (PHP_OS == 'HP-UX') { Looks good. Can someone take care of applying it? (I don't have the time for it right now.) -- - Martin Martin Jansen http://martinjansen.com/

« previous php.pear.dev (#18080) next »