Skip to content

Commit dccd137

Browse files
committed
iconv_strlen() cannot return a string
1 parent 27e83d0 commit dccd137

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/iconv/iconv.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
function iconv_strlen(string $str, string $charset = UNKNOWN): string|int|false {}
3+
function iconv_strlen(string $str, string $charset = UNKNOWN): int|false {}
44

55
function iconv_substr(string $str, int $offset, ?int $length = null, string $charset = UNKNOWN): string|false {}
66

ext/iconv/iconv_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* This is a generated file, edit the .stub.php file instead. */
22

3-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strlen, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
3+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strlen, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
44
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
55
ZEND_ARG_TYPE_INFO(0, charset, IS_STRING, 0)
66
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)