]> granicus.if.org Git - php/commitdiff
iconv_strlen() cannot return a string
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 11 Nov 2019 14:39:52 +0000 (15:39 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 11 Nov 2019 14:40:59 +0000 (15:40 +0100)
ext/iconv/iconv.stub.php
ext/iconv/iconv_arginfo.h

index 9fbbcd67a0647d7475acf958150acacde77e7176..cd9bab3ad0e98747e0f4fbf5a63f8ade63f02f26 100644 (file)
@@ -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 {}
 
index fcd6a5c34882347a4850affc9989cbcc43825788..51f11cf7942610f314c6ab502c313ba3b62156d4 100644 (file)
@@ -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()