[php-src] master: Declare true return type for ext/odbc functions
| From: | Máté Kocsis | Date: | Sat, 06 Apr 2024 20:57:03 +0000 |
| Subject: | [php-src] master: Declare true return type for ext/odbc functions | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-127955@lists.php.net to get a copy of this message | ||
Author: Máté Kocsis (kocsismate)
Date: 2024-04-06T22:56:23+02:00
Commit: https://github.com/php/php-src/commit/b981d4aff9ba5621bad318fb0fd892621fb9fbc1
Raw diff: https://github.com/php/php-src/commit/b981d4aff9ba5621bad318fb0fd892621fb9fbc1.diff
Declare true return type for ext/odbc functions
Changed paths:
M ext/odbc/odbc.stub.php
M ext/odbc/odbc_arginfo.h
Diff:
diff --git a/ext/odbc/odbc.stub.php b/ext/odbc/odbc.stub.php
index 732b9d01fd86f..32c7799e54769 100644
--- a/ext/odbc/odbc.stub.php
+++ b/ext/odbc/odbc.stub.php
@@ -315,10 +315,10 @@
function odbc_close_all(): void {}
/** @param resource $statement */
-function odbc_binmode($statement, int $mode): bool {}
+function odbc_binmode($statement, int $mode): true {}
/** @param resource $statement */
-function odbc_longreadlen($statement, int $length): bool {}
+function odbc_longreadlen($statement, int $length): true {}
/**
* @param resource $odbc
@@ -377,7 +377,7 @@ function odbc_result($statement, string|int $field): string|bool|null {}
function odbc_result_all($statement, string $format = ""): int|false {}
/** @param resource $statement */
-function odbc_free_result($statement): bool {}
+function odbc_free_result($statement): true {}
/**
* @return resource|false
diff --git a/ext/odbc/odbc_arginfo.h b/ext/odbc/odbc_arginfo.h
index 481f1730f3991..3278d78523eb3 100644
--- a/ext/odbc/odbc_arginfo.h
+++ b/ext/odbc/odbc_arginfo.h
@@ -1,15 +1,15 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: ff33935d54ae09f494fe957ca0b86d6c5c8bcab2 */
+ * Stub hash: 10479c33da6a72181c550c6690990e419d0dd5ad */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_close_all, 0, 0, IS_VOID, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_binmode, 0, 2, _IS_BOOL, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_binmode, 0, 2, IS_TRUE, 0)
ZEND_ARG_INFO(0, statement)
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_longreadlen, 0, 2, _IS_BOOL, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_longreadlen, 0, 2, IS_TRUE, 0)
ZEND_ARG_INFO(0, statement)
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
ZEND_END_ARG_INFO()
@@ -74,7 +74,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_result_all, 0, 1, MAY_BE_LO
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 0, "\"\"")
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_free_result, 0, 1, _IS_BOOL, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_free_result, 0, 1, IS_TRUE, 0)
ZEND_ARG_INFO(0, statement)
ZEND_END_ARG_INFO()