Home
last modified time | relevance | path

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

/PHP-7.2/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", "bc", 1, 2));
8 var_dump(substr_compare("abcde", "bcg", 1, 2));
9 var_dump(substr_compare("abcde", "BC", 1, 2, true));
10 var_dump(substr_compare("abcde", "bc", 1, 3) > 0);
11 var_dump(substr_compare("abcde", "cd", 1, 2) < 0);
12 var_dump(substr_compare("abcde", "abc", 5, 1));
13 var_dump(substr_compare("abcde", "abcdef", -10, 10) < 0);
14 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)
5 $res = substr_compare("aa", "a", -99999999, -1, 0);
10 Warning: substr_compare(): The length must be greater than or equal to zero in %s on line %d
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.phpt15 var_dump(substr_compare("abcde", "abc", $v, $v));
38 Warning: substr_compare(): The start position cannot exceed initial string length in %s on line %d
/PHP-7.2/ext/pcre/
H A Dupgrade-pcre.php40 @substr_compare($file, '.lo', -3, 3) === 0 ||
41 @substr_compare($file, '.loT', -4, 4) === 0 ||
42 @substr_compare($file, '.o', -2, 2) === 0) continue;
/PHP-7.2/ext/imap/tests/
H A Dclean.inc18 && substr_compare($match[1], $mailbox_prefix, 0, strlen($mailbox_prefix)) == 0) {
/PHP-7.2/scripts/dev/
H A Dcheck_parameters.php311 if (substr_compare($file, '.c', -2) && substr_compare($file, '.cpp', -4)) continue;
/PHP-7.2/ext/standard/
H A Dphp_string.h95 PHP_FUNCTION(substr_compare);
H A Dbasic_functions.c2784 PHP_FE(substr_compare, arginfo_substr_compare)
H A Dstring.c5733 PHP_FUNCTION(substr_compare) argument
/PHP-7.2/
H A D.gitattributes113 /ext/standard/tests/strings/substr_compare.phpt -crlf
H A DNEWS461 . Fixed bug #77853 (Inconsistent substr_compare behaviour with empty
3074 . Fixed bug #55451 (substr_compare NULL length interpreted as 0). (Lauri

Completed in 46 milliseconds