From 77252afaf0488f4e4f1440b7a4d32b6be2fa13eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Tue, 8 Aug 2023 08:52:41 +0200 Subject: [PATCH] Fix return type of odbc_data_source() --- ext/odbc/odbc.stub.php | 2 +- ext/odbc/odbc_arginfo.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/odbc/odbc.stub.php b/ext/odbc/odbc.stub.php index ca0ca2301d7..8f4c637dd75 100644 --- a/ext/odbc/odbc.stub.php +++ b/ext/odbc/odbc.stub.php @@ -24,7 +24,7 @@ function odbc_cursor($statement): string|false {} #ifdef HAVE_SQLDATASOURCES /** @param resource $odbc */ -function odbc_data_source($odbc, int $fetch_type): array|false {} +function odbc_data_source($odbc, int $fetch_type): array|null|false {} #endif /** diff --git a/ext/odbc/odbc_arginfo.h b/ext/odbc/odbc_arginfo.h index b374007b652..0431e818c82 100644 --- a/ext/odbc/odbc_arginfo.h +++ b/ext/odbc/odbc_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 27a50ba79ed632721ee458527ef543e4b44ee897 */ + * Stub hash: 245f4e9679e4da2fe2890bca50f36cd48e8a496c */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_close_all, 0, 0, IS_VOID, 0) ZEND_END_ARG_INFO() @@ -29,7 +29,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_cursor, 0, 1, MAY_BE_STRING ZEND_END_ARG_INFO() #if defined(HAVE_SQLDATASOURCES) -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_data_source, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_data_source, 0, 2, MAY_BE_ARRAY|MAY_BE_NULL|MAY_BE_FALSE) ZEND_ARG_INFO(0, odbc) ZEND_ARG_TYPE_INFO(0, fetch_type, IS_LONG, 0) ZEND_END_ARG_INFO()