]> granicus.if.org Git - php/commitdiff
DB::assertExtension-> trigger a useful error message if backend extension couldn...
authorTomas V.V.Cox <cox@php.net>
Thu, 26 Jul 2001 00:01:27 +0000 (00:01 +0000)
committerTomas V.V.Cox <cox@php.net>
Thu, 26 Jul 2001 00:01:27 +0000 (00:01 +0000)
pear/DB.php

index 1efb5b47842ea6149be40a191cead4201d554d77..33a6bfa259e584e7227ea5fcf81a9d9e8990c479 100644 (file)
@@ -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;