Searched refs:substr_compare (Results 1 – 10 of 10) sorted by relevance
/PHP-8.1/ext/standard/tests/strings/ |
H A D | substr_compare.phpt | 2 substr_compare() 6 var_dump(substr_compare("abcde", "df", -2) < 0); 7 var_dump(substr_compare("abcde", "df", -2, null) < 0); 8 var_dump(substr_compare("abcde", "bc", 1, 2)); 9 var_dump(substr_compare("abcde", "bcg", 1, 2)); 10 var_dump(substr_compare("abcde", "BC", 1, 2, true)); 11 var_dump(substr_compare("abcde", "bc", 1, 3) > 0); 12 var_dump(substr_compare("abcde", "cd", 1, 2) < 0); 13 var_dump(substr_compare("abcde", "abc", 5, 1)); 15 var_dump(substr_compare("abcde", "abc", 0, 0)); [all …]
|
H A D | bug77853.phpt | 2 Bug #77853: Inconsistent substr_compare behaviour with empty haystack 6 var_dump(substr_compare('', '', 0, 0)); 7 var_dump(substr_compare('', '', 0)); 9 var_dump(substr_compare('abc', '', 3, 0)); 10 var_dump(substr_compare('abc', '', 3)); 12 var_dump(substr_compare('abc', "\0", 3));
|
H A D | bug55451.phpt | 2 Bug #55451 (substr_compare with NULL as default length) 5 var_dump(substr_compare("abcde", "ABCD", 0, NULL, false) != 0); 6 var_dump(substr_compare("abcde", "ABCD", 0, NULL, true) != 0); 7 var_dump(substr_compare("abcde", "ABCDE", 0, NULL, false) != 0); 8 var_dump(substr_compare("abcde", "ABCDE", 0, NULL, true) == 0);
|
H A D | bug33605.phpt | 2 Bug #33605 (substr_compare crashes) 6 substr_compare("aa", "a", -99999999, -1, 0); 13 substr_compare(): Argument #4 ($length) must be greater than or equal to 0
|
H A D | bug54454.phpt | 2 Bug #54454 (substr_compare incorrectly reports equality in some cases) 5 var_dump(substr_compare('/', '/asd', 0, 4));
|
H A D | bug40754.phpt | 20 substr_compare("abcde", "abc", $v, $v); 84 substr_compare(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
/PHP-8.1/scripts/dev/ |
H A D | check_parameters.php | 307 if (substr_compare($file, '.c', -2) && substr_compare($file, '.cpp', -4)) continue;
|
/PHP-8.1/ext/standard/ |
H A D | basic_functions.stub.php | 922 function substr_compare(string $haystack, string $needle, int $offset, ?int $length = null, bool $c… function
|
H A D | basic_functions_arginfo.h | 2523 ZEND_FUNCTION(substr_compare); 3163 ZEND_FE(substr_compare, arginfo_substr_compare)
|
H A D | string.c | 5931 PHP_FUNCTION(substr_compare) argument
|
Completed in 57 milliseconds