From: Tomas V.V.Cox Date: Thu, 26 Jul 2001 00:01:27 +0000 (+0000) Subject: DB::assertExtension-> trigger a useful error message if backend extension couldn... X-Git-Tag: PRE_TSRM_MERGE_PATCH~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=538c838ac9dfe2d7a920c727407580bd013bde2d;p=php DB::assertExtension-> trigger a useful error message if backend extension couldn't be loaded --- 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;