summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas V.V.Cox <cox@php.net>2001-07-26 00:01:27 +0000
committerTomas V.V.Cox <cox@php.net>2001-07-26 00:01:27 +0000
commit538c838ac9dfe2d7a920c727407580bd013bde2d (patch)
tree586e19d6f4b44118e106dcbd356c7f382d05c87a
parenta9e0de3947ea42fa7a24d2deba3c1a75fa273fa8 (diff)
downloadphp-git-538c838ac9dfe2d7a920c727407580bd013bde2d.tar.gz
DB::assertExtension-> trigger a useful error message if backend extension couldn't be loaded
-rw-r--r--pear/DB.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/pear/DB.php b/pear/DB.php
index 1efb5b4784..33a6bfa259 100644
--- a/pear/DB.php
+++ b/pear/DB.php
@@ -510,6 +510,9 @@ class DB
@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;