diff options
author | Tomas V.V.Cox <cox@php.net> | 2001-07-26 00:01:27 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2001-07-26 00:01:27 +0000 |
commit | 538c838ac9dfe2d7a920c727407580bd013bde2d (patch) | |
tree | 586e19d6f4b44118e106dcbd356c7f382d05c87a | |
parent | a9e0de3947ea42fa7a24d2deba3c1a75fa273fa8 (diff) | |
download | php-git-538c838ac9dfe2d7a920c727407580bd013bde2d.tar.gz |
DB::assertExtension-> trigger a useful error message if backend extension couldn't be loaded
-rw-r--r-- | pear/DB.php | 3 |
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; |