diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-22 10:54:44 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-22 10:54:44 +0200 |
| commit | d0fb2f409eb0bf4cc865ade8c4de255bf9f9eaff (patch) | |
| tree | 098025c70dee2b131cfe2d6d2d5357c739b9c03e | |
| parent | 5d9ab53a5d53f11a18ae11ed31b17ff87c8d52a7 (diff) | |
| download | php-git-d0fb2f409eb0bf4cc865ade8c4de255bf9f9eaff.tar.gz | |
substr_compare() cannot return false
| -rwxr-xr-x | ext/standard/basic_functions.stub.php | 2 | ||||
| -rw-r--r-- | ext/standard/basic_functions_arginfo.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php index 49ca4d7f82..ecc97686d3 100755 --- a/ext/standard/basic_functions.stub.php +++ b/ext/standard/basic_functions.stub.php @@ -687,7 +687,7 @@ function str_split(string $str, int $split_length = 1): array {} function strpbrk(string $haystack, string $char_list): string|false {} -function substr_compare(string $main_str, string $str, int $offset, ?int $length = null, bool $case_insensitivity = false): int|false {} +function substr_compare(string $main_str, string $str, int $offset, ?int $length = null, bool $case_insensitivity = false): int {} function utf8_encode(string $data): string {} diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h index 12a8c0c5ed..0f96cb302c 100644 --- a/ext/standard/basic_functions_arginfo.h +++ b/ext/standard/basic_functions_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 3f866608d73047b04b6a1abb6cbfa75abfeeed58 */ + * Stub hash: 5e8cd8c22edadede2814b26b6fb984f1c3626850 */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0) @@ -1082,7 +1082,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strpbrk, 0, 2, MAY_BE_STRING|MAY ZEND_ARG_TYPE_INFO(0, char_list, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_substr_compare, 0, 3, MAY_BE_LONG|MAY_BE_FALSE) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_substr_compare, 0, 3, IS_LONG, 0) ZEND_ARG_TYPE_INFO(0, main_str, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) |
