You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please explain how you managed to trigger this first.
There's at least 2 reasons why it doesn't make sense:
A string class name is always interpreted as an absolute (i.e. namespaces included) class path by PHP. In other words, the leading namespace separator is assumed/irrelevant for string class names (as well as in use statements). If this is somehow not the case in some MySQLi function - then it would be a PHP bug.
This is easily testable:
CI_DB_mysqli_result is not declared inside a namespace. Thus, even if the former point wasn't true, 'stdClass' would still resolve to \stdClass when relatively searched for, as both classes reside in the root namespace.
I got this error from CI.
Environment
IIS 10
PHP 7.0.16
I solved this problem changing the line 183 of mysqli_result.php to
protected function _fetch_object($class_name = '\stdClass')
The text was updated successfully, but these errors were encountered: