Using Mysqli driver count causes error
Opened this issue · 2 comments
Deleted user commented
Fuel version 1.8.1.4
when using Mysqli Deiver got a error in php7.2.
Fuel\Core\PhpErrorException [ Warning ]:
count(): Parameter must be an array or an object that implements Countable
I think the following is correct.
core/classes/database/mysqli/cached.php
Line 63 in cd46fc6
- $this->_total_rows = count($this->_result);
+ $this->_total_rows = count($this->_results);
0a7931b
Fuel version 1.9 is already fixed.
WanWizard commented
I'll push it as a 1.8.1.5 hotfix later. Thanks for reminding me.
WanWizard commented
Done.