@@ -976,7 +976,7 @@ protected function _ci_load_library($class, $params = null, $object_name = null)
976976if  (class_exists ($ classfalse )) {
977977            $ property$ object_name
978978            if  (empty ($ property
979-                 $ propertystrtolower ($ class
979+                 $ propertystrtolower (( string )  $ class
980980                isset ($ this _ci_varmap [$ property$ property$ this _ci_varmap [$ property
981981            }
982982
@@ -1041,7 +1041,7 @@ protected function _ci_load_stock_library($library_name, $file_path, $params, $o
10411041
10421042            $ property$ object_name
10431043            if  (empty ($ property
1044-                 $ propertystrtolower ($ library_name
1044+                 $ propertystrtolower (( string )  $ library_name
10451045                isset ($ this _ci_varmap [$ property$ property$ this _ci_varmap [$ property
10461046            }
10471047
@@ -1120,21 +1120,21 @@ protected function _ci_init_library($class, $prefix, $config = false, $object_na
11201120                    // We test for both uppercase and lowercase, for servers that 
11211121                    // are case-sensitive with regard to file names. Load global first, 
11221122                    // override with environment next 
1123-                     if  (file_exists ($ path'config/ '  . strtolower ($ class'.php ' )) {
1123+                     if  (file_exists ($ path'config/ '  . strtolower (( string )  $ class'.php ' )) {
11241124                        include ($ path'config/ '  . strtolower ($ class'.php ' );
11251125                        $ foundtrue ;
1126-                     } elseif  (file_exists ($ path'config/ '  . ucfirst (strtolower ($ class'.php ' )) {
1127-                         include ($ path'config/ '  . ucfirst (strtolower ($ class'.php ' );
1126+                     } elseif  (file_exists ($ path'config/ '  . ucfirst (strtolower (( string )  $ class'.php ' )) {
1127+                         include ($ path'config/ '  . ucfirst (strtolower (( string )  $ class'.php ' );
11281128                        $ foundtrue ;
11291129                    }
11301130
1131-                     if  (file_exists ($ path'config/ '  . ENVIRONMENT  . '/ '  . strtolower ($ class'.php ' )) {
1132-                         include ($ path'config/ '  . ENVIRONMENT  . '/ '  . strtolower ($ class'.php ' );
1131+                     if  (file_exists ($ path'config/ '  . ENVIRONMENT  . '/ '  . strtolower (( string )  $ class'.php ' )) {
1132+                         include ($ path'config/ '  . ENVIRONMENT  . '/ '  . strtolower (( string )  $ class'.php ' );
11331133                        $ foundtrue ;
11341134                    } elseif  (file_exists (
1135-                         $ path'config/ '  . ENVIRONMENT  . '/ '  . ucfirst (strtolower ($ class'.php ' 
1135+                         $ path'config/ '  . ENVIRONMENT  . '/ '  . ucfirst (strtolower (( string )  $ class'.php ' 
11361136                    )) {
1137-                         include ($ path'config/ '  . ENVIRONMENT  . '/ '  . ucfirst (strtolower ($ class'.php ' );
1137+                         include ($ path'config/ '  . ENVIRONMENT  . '/ '  . ucfirst (strtolower (( string )  $ class'.php ' );
11381138                        $ foundtrue ;
11391139                    }
11401140
@@ -1158,7 +1158,7 @@ protected function _ci_init_library($class, $prefix, $config = false, $object_na
11581158        // Set the variable name we will assign the class to 
11591159        // Was a custom class name supplied? If so we'll use it 
11601160        if  (empty ($ object_name
1161-             $ object_namestrtolower ($ class
1161+             $ object_namestrtolower (( string )  $ class
11621162            if  (isset ($ this _ci_varmap [$ object_name
11631163                $ object_name$ this _ci_varmap [$ object_name
11641164            }
0 commit comments