1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

mysqli_field_seek return type changed to true (#11948)

This commit is contained in:
Kamil Tekiela
2023-08-14 19:04:34 +01:00
committed by GitHub
parent 27fb8d1c0c
commit 0b887042ae
3 changed files with 7 additions and 5 deletions

View File

@@ -289,6 +289,8 @@ PHP 8.3 UPGRADE NOTES
constructor.
. mysqli_poll now raises a ValueError when the read nor error arguments are
passed.
. mysqli_field_seek and mysqli_result::field_seek now specify return type
as true instead of bool.
- ODBC
. odbc_autocommit() now accepts null for the $enable parameter.

View File

@@ -1144,7 +1144,7 @@ class mysqli_result implements IteratorAggregate
* @tentative-return-type
* @alias mysqli_field_seek
*/
public function field_seek(int $index): bool {}
public function field_seek(int $index): true {} // TODO make return type void
/**
* @tentative-return-type
@@ -1457,7 +1457,7 @@ function mysqli_fetch_column(mysqli_result $result, int $column = 0): null|int|f
function mysqli_field_count(mysqli $mysql): int {}
function mysqli_field_seek(mysqli_result $result, int $index): bool {}
function mysqli_field_seek(mysqli_result $result, int $index): true {} // TODO make return type void
function mysqli_field_tell(mysqli_result $result): int {}

View File

@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 656fe3f3475bb2f43d89ebf34361940e2f746373 */
* Stub hash: a54ef005e9535458e886b7845a25a1c742a114ac */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
ZEND_ARG_OBJ_INFO(0, mysql, mysqli, 0)
@@ -130,7 +130,7 @@ ZEND_END_ARG_INFO()
#define arginfo_mysqli_field_count arginfo_mysqli_errno
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mysqli_field_seek, 0, 2, _IS_BOOL, 0)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mysqli_field_seek, 0, 2, IS_TRUE, 0)
ZEND_ARG_OBJ_INFO(0, result, mysqli_result, 0)
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
ZEND_END_ARG_INFO()
@@ -628,7 +628,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_mysqli_result_fetch_column
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, column, IS_LONG, 0, "0")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_mysqli_result_field_seek, 0, 1, _IS_BOOL, 0)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_mysqli_result_field_seek, 0, 1, IS_TRUE, 0)
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
ZEND_END_ARG_INFO()