]> granicus.if.org Git - php/commitdiff
add a note about include return values
authorStig Bakken <ssb@php.net>
Fri, 25 Feb 2000 21:18:01 +0000 (21:18 +0000)
committerStig Bakken <ssb@php.net>
Fri, 25 Feb 2000 21:18:01 +0000 (21:18 +0000)
pear/DB.php

index 3439b351cc74b4bf2419ddb33c0ad98da61550f0..6781c58242eab491358d9255017c671586cf4d36 100644 (file)
@@ -203,11 +203,20 @@ class DB {
                // "include" should be replaced with "import" once PHP gets it
                $pkgname = 'DB/' . $type;
                if (!is_array($USED_PACKAGES) || !$USED_PACKAGES[$pkgname]) {
-                       if (!@include("${pkgname}.php")) {
+                       $file = "${pkgname}.php";
+                       include($file);
+/*
+
+   This suddenly stopped working.  I thought include() was supposed to
+   return a boolean? [ssb 20000218]
+
+                       if (!include($file)) {
+                               print "'$file' not found<br>\n";
                                return DB_ERROR_NOT_FOUND;
                        } else {
                                $USED_PACKAGES[$pkgname] = true;
                        }
+*/
                }
                $classname = 'DB_' . $type;
                $obj = new $classname;