1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00

substr_compare() cannot return false

This commit is contained in:
Nikita Popov
2020-09-22 10:54:44 +02:00
parent 5d9ab53a5d
commit d0fb2f409e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 {}
+2 -2
View File
@@ -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)