Open bhsmither opened 2 months ago
Thanks.
PHP Deprecated: Creation of dynamic property Database::$_errorno is deprecated in /home/{..}/precisionwiresaw.com/public_html/classes/db/mysqli.class.php on line 97
I recommend a protected class variable. Private class variables might not be accessible in mysqli.php.
I will have to review who is the parent and who is the child in:
class Database extends Database_Contoller
A parent's private aspects cannot be seen by the children. Is that the same the other way around?
Anyway, that's why I chose Protected - so that the parent and child has access to it equally.
OK thanks.
In mysqli.class.php, in
public function error()
, the return is a boolean.However, in
Database->_sqlDebug()
, there is a call to$this->error()
, the result of it is being used to build a string.Suggest in
error()
, change:Then, in
_sqlDebug()
, change:This will need to add the class variable
protected $_errorno;
.