]> granicus.if.org Git - php/commitdiff
substr_compare() cannot return false
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 22 Sep 2020 08:54:44 +0000 (10:54 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 22 Sep 2020 08:54:44 +0000 (10:54 +0200)
ext/standard/basic_functions.stub.php
ext/standard/basic_functions_arginfo.h

index 49ca4d7f82d00c512b7b791d9de3d50ff21c6f33..ecc97686d3b3eeacb0b67f524ddfc68e74f27ffb 100755 (executable)
@@ -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 {}
 
index 12a8c0c5ed3e688544d86512c0bbc6dc7b275d66..0f96cb302c4f4154fbfcedcb0114bd9d02ceafbc 100644 (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)