cvs: php4 /pear DB.php
| From: | Thomas V.V.Cox | Date: | Thu, 26 Jul 2001 00:01:28 +0000 |
| Subject: | cvs: php4 /pear DB.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-343@lists.php.net to get a copy of this message | ||
cox Wed Jul 25 20:01:28 2001 EDT
Modified files:
/php4/pear DB.php
Log:
DB::assertExtension-> trigger a useful error message if backend extension couldn't be
loaded
Index: php4/pear/DB.php
diff -u php4/pear/DB.php:1.71 php4/pear/DB.php:1.72
--- php4/pear/DB.php:1.71 Tue Jul 17 12:01:16 2001
+++ php4/pear/DB.php Wed Jul 25 20:01:27 2001
@@ -17,7 +17,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: DB.php,v 1.71 2001/07/17 16:01:16 chagenbu Exp $
+// $Id: DB.php,v 1.72 2001/07/26 00:01:27 cox Exp $
//
// Database independent query interface.
//
@@ -510,6 +510,9 @@
@dl($name . $dlext);
}
if (!extension_loaded($name)) {
+ trigger_error("The extension '$name' couldn't be loaded. ".
+ 'Probably you don\'t have support in your PHP '.
+ 'to this Database backend', E_USER_ERROR);
return false;
}
return true;