From e42a6d19a93271c46a924736e0a2e3c7027b97d1 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Sun, 24 Oct 2021 00:59:38 +0100 Subject: [PATCH] mysqli::fetch_fields does not return false According to PHP source code (both 7 & 8) this function never returns false. It can only return an array. --- resources/functionMap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/functionMap.php b/resources/functionMap.php index ad4bfa0c81..6be3b147b5 100644 --- a/resources/functionMap.php +++ b/resources/functionMap.php @@ -7239,7 +7239,7 @@ 'mysqli_fetch_assoc' => ['array|null', 'result'=>'mysqli_result'], 'mysqli_fetch_field' => ['object|false', 'result'=>'mysqli_result'], 'mysqli_fetch_field_direct' => ['object|false', 'result'=>'mysqli_result', 'fieldnr'=>'int'], -'mysqli_fetch_fields' => ['array|false', 'result'=>'mysqli_result'], +'mysqli_fetch_fields' => ['array', 'result'=>'mysqli_result'], 'mysqli_fetch_lengths' => ['array|false', 'result'=>'mysqli_result'], 'mysqli_fetch_object' => ['object|null', 'result'=>'mysqli_result', 'class_name='=>'string', 'params='=>'?array'], 'mysqli_fetch_row' => ['array|null', 'result'=>'mysqli_result'], @@ -7290,7 +7290,7 @@ 'mysqli_result::fetch_assoc' => ['array|null'], 'mysqli_result::fetch_field' => ['object|false'], 'mysqli_result::fetch_field_direct' => ['object|false', 'fieldnr'=>'int'], -'mysqli_result::fetch_fields' => ['array|false'], +'mysqli_result::fetch_fields' => ['array'], 'mysqli_result::fetch_object' => ['object|null', 'class_name='=>'string', 'params='=>'array'], 'mysqli_result::fetch_row' => ['array|null'], 'mysqli_result::field_seek' => ['bool', 'fieldnr'=>'int'],