com php-src: iconv_strlen() cannot return a strin g: ext/iconv/iconv.stub.php ext/iconv/iconv_arginfo .h

From: Date: Mon, 11 Nov 2019 14:40:59 +0000
Subject: com php-src: iconv_strlen() cannot return a strin g: ext/iconv/iconv.stub.php ext/iconv/iconv_arginfo .h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-109239@lists.php.net to get a copy of this message
Commit: dccd137e1a77d9ea04c2a0bb67eb1e14cd992b37 Author: Christoph M. Becker <cmbecker69@gmx.de> Mon, 11 Nov 2019 15:39:52 +0100 Parents: 27e83d0fb87c04b61441fb77e963dd4e14ad187e Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=dccd137e1a77d9ea04c2a0bb67eb1e14cd992b37 Log: iconv_strlen() cannot return a string Changed paths: M ext/iconv/iconv.stub.php M ext/iconv/iconv_arginfo.h Diff: diff --git a/ext/iconv/iconv.stub.php b/ext/iconv/iconv.stub.php index 9fbbcd67a06..cd9bab3ad0e 100644 --- a/ext/iconv/iconv.stub.php +++ b/ext/iconv/iconv.stub.php @@ -1,6 +1,6 @@ <?php -function iconv_strlen(string $str, string $charset = UNKNOWN): string|int|false {} +function iconv_strlen(string $str, string $charset = UNKNOWN): int|false {} function iconv_substr(string $str, int $offset, ?int $length = null, string $charset = UNKNOWN): string|false {} diff --git a/ext/iconv/iconv_arginfo.h b/ext/iconv/iconv_arginfo.h index fcd6a5c3488..51f11cf7942 100644 --- a/ext/iconv/iconv_arginfo.h +++ b/ext/iconv/iconv_arginfo.h @@ -1,6 +1,6 @@ /* This is a generated file, edit the .stub.php file instead. */ -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strlen, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strlen, 0, 1, MAY_BE_LONG|MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, charset, IS_STRING, 0) ZEND_END_ARG_INFO()

« previous php.cvs (#109239) next »