Skip to content

Commit 86a2e4d

Browse files
committed
Fix GH-20699: SQLite3Result fetchArray return array|false, null returned
1 parent 038e534 commit 86a2e4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/sqlite3/sqlite3.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,6 +2011,7 @@ PHP_METHOD(SQLite3Result, fetchArray)
20112011

20122012
default:
20132013
php_sqlite3_error(result_obj->db_obj, sqlite3_errcode(sqlite3_db_handle(result_obj->stmt_obj->stmt)), "Unable to execute statement: %s", sqlite3_errmsg(sqlite3_db_handle(result_obj->stmt_obj->stmt)));
2014+
RETURN_FALSE;
20142015
}
20152016
}
20162017
/* }}} */

0 commit comments

Comments
 (0)