cvs: pear /DB DB.php

From: Date: Sun, 26 May 2002 15:31:32 +0000
Subject: cvs: pear /DB DB.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4098@lists.php.net to get a copy of this message
cox Sun May 26 11:31:32 2002 EDT Modified files: /pear/DB DB.php Log: Minor speed improvement to DB::assertExtension() Index: pear/DB/DB.php diff -u pear/DB/DB.php:1.5 pear/DB/DB.php:1.6 --- pear/DB/DB.php:1.5 Wed May 22 08:57:10 2002 +++ pear/DB/DB.php Sun May 26 11:31:32 2002 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: DB.php,v 1.5 2002/05/22 12:57:10 cox Exp $ +// $Id: DB.php,v 1.6 2002/05/26 15:31:32 cox Exp $ // // Database independent query interface. // @@ -567,8 +567,8 @@ * * @access public * - * @param string the base name of the extension (without the .so or - * .dll suffix) + * @param string $name the base name of the extension (without the .so or + * .dll suffix) * * @return boolean true if the extension was already or successfully * loaded, false if it could not be loaded @@ -578,8 +578,9 @@ if (!extension_loaded($name)) { $dlext = OS_WINDOWS ? '.dll' : '.so'; @dl($name . $dlext); + return extension_loaded($name); } - return extension_loaded($name); + return true; } }

« previous php.pear.cvs (#4098) next »