diff options
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/it_dbi.class b/it_dbi.class index ce2e8c0..8696ead 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -1020,21 +1020,25 @@ static function _state_purgeshared($dbid = null) # Implement PHP 5 Iterator interface to make foreach work # Example: foreach (new T_User('firstname' => "foo") as $foouser) { ... } # +#[ReturnTypeWillChange] function current() { return $this; } +#[ReturnTypeWillChange] function key() { return isset($this->_key) ? $this->_key : $this->_iteratorkey++; } +#[ReturnTypeWillChange] function next() { $this->iterate(); } +#[ReturnTypeWillChange] function rewind() { if (!$this->_result) # Object without query used in foreach @@ -1048,6 +1052,7 @@ function rewind() $this->iterate(); } +#[ReturnTypeWillChange] function valid() { return (bool)$this->_data; @@ -1089,6 +1094,7 @@ function _escape_name($str) } function _connect_db($p) { + mysqli_report(MYSQLI_REPORT_OFF); # it_dbi does not want exceptions for syntax errors $result = @mysqli_connect($p['server'], $p['user'], $p['pw']); if ($result) |