PHP8 fixes
authorAlan <alan@roojs.com>
Wed, 12 Apr 2023 02:23:10 +0000 (10:23 +0800)
committerAlan <alan@roojs.com>
Wed, 12 Apr 2023 02:23:10 +0000 (10:23 +0800)
DB.php

diff --git a/DB.php b/DB.php
index c9be769..63bd0de 100644 (file)
--- a/DB.php
+++ b/DB.php
@@ -462,7 +462,7 @@ class DB
             include_once "DB/{$type}.php";
         }
 
-        $classname = "DB_${type}";
+        $classname = "DB_{$type}";
 
         if (!class_exists($classname)) {
             $tmp = PEAR::raiseError(null, DB_ERROR_NOT_FOUND, null, null,
@@ -535,12 +535,12 @@ class DB
 
         if (isset($options['debug']) && $options['debug'] >= 2) {
             // expose php errors with sufficient debug level
-            include_once "DB/${type}.php";
+            include_once "DB/{$type}.php";
         } else {
-            @include_once "DB/${type}.php";
+            @include_once "DB/{$type}.php";
         }
 
-        $classname = "DB_${type}";
+        $classname = "DB_{$type}";
         if (!class_exists($classname)) {
             $tmp = PEAR::raiseError(null, DB_ERROR_NOT_FOUND, null, null,
                                     "Unable to include the DB/{$type}.php"