mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix return type of odbc_data_source()
This commit is contained in:
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user