Home
last modified time | relevance | path

Searched refs:substr_compare (Results 1 – 10 of 10) sorted by relevance

/PHP-8.1/ext/standard/tests/strings/
H A Dsubstr_compare.phpt2 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 Dbug77853.phpt2 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 Dbug55451.phpt2 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 Dbug33605.phpt2 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 Dbug54454.phpt2 Bug #54454 (substr_compare incorrectly reports equality in some cases)
5 var_dump(substr_compare('/', '/asd', 0, 4));
H A Dbug40754.phpt20 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 Dcheck_parameters.php307 if (substr_compare($file, '.c', -2) && substr_compare($file, '.cpp', -4)) continue;
/PHP-8.1/ext/standard/
H A Dbasic_functions.stub.php922 function substr_compare(string $haystack, string $needle, int $offset, ?int $length = null, bool $c… function
H A Dbasic_functions_arginfo.h2523 ZEND_FUNCTION(substr_compare);
3163 ZEND_FE(substr_compare, arginfo_substr_compare)
H A Dstring.c5931 PHP_FUNCTION(substr_compare) argument

Completed in 57 milliseconds