| @@ 1125-1138 (lines=14) @@ | ||
| 1122 | * @param bool|\mysqli_result|object $res MySQLi result object / DBAL object |
|
| 1123 | * @return array|bool Associative array of result row. |
|
| 1124 | */ |
|
| 1125 | public function sql_fetch_assoc($res) |
|
| 1126 | { |
|
| 1127 | $this->logDeprecation(); |
|
| 1128 | if ($this->debug_check_recordset($res)) { |
|
| 1129 | $result = $res->fetch_assoc(); |
|
| 1130 | if ($result === null) { |
|
| 1131 | // Needed for compatibility |
|
| 1132 | $result = false; |
|
| 1133 | } |
|
| 1134 | return $result; |
|
| 1135 | } else { |
|
| 1136 | return false; |
|
| 1137 | } |
|
| 1138 | } |
|
| 1139 | ||
| 1140 | /** |
|
| 1141 | * Returns an array that corresponds to the fetched row, or FALSE if there are no more rows. |
|
| @@ 1148-1161 (lines=14) @@ | ||
| 1145 | * @param bool|\mysqli_result|object $res MySQLi result object / DBAL object |
|
| 1146 | * @return array|bool Array with result rows. |
|
| 1147 | */ |
|
| 1148 | public function sql_fetch_row($res) |
|
| 1149 | { |
|
| 1150 | $this->logDeprecation(); |
|
| 1151 | if ($this->debug_check_recordset($res)) { |
|
| 1152 | $result = $res->fetch_row(); |
|
| 1153 | if ($result === null) { |
|
| 1154 | // Needed for compatibility |
|
| 1155 | $result = false; |
|
| 1156 | } |
|
| 1157 | return $result; |
|
| 1158 | } else { |
|
| 1159 | return false; |
|
| 1160 | } |
|
| 1161 | } |
|
| 1162 | ||
| 1163 | /** |
|
| 1164 | * Free result memory |
|