Home
last modified time | relevance | path

Searched refs:strncasecmp (Results 1 – 25 of 77) sorted by path

1234

/php-src/Zend/tests/
H A D006.phpt2 strncasecmp() tests
7 var_dump(strncasecmp("", "", -1));
12 var_dump(strncasecmp("aef", "dfsgbdf", 0));
13 var_dump(strncasecmp("aef", "dfsgbdf", 10));
14 var_dump(strncasecmp("qwe", "qwer", 3));
15 var_dump(strncasecmp("qwerty", "QweRty", 6));
16 var_dump(strncasecmp("qwErtY", "qwer", 7));
17 var_dump(strncasecmp("q123", "Q123", 3));
18 var_dump(strncasecmp("01", "01", 1000));
22 strncasecmp(): Argument #3 ($length) must be greater than or equal to 0
/php-src/Zend/
H A Dzend_builtin_functions.c363 ZEND_FUNCTION(strncasecmp) in ZEND_FUNCTION() argument
2123 if (strncasecmp(ZSTR_VAL(extension_name), "zend", sizeof("zend"))) { in ZEND_FUNCTION()
H A Dzend_builtin_functions.stub.php32 function strncasecmp(string $string1, string $string2, int $length): int {} function
H A Dzend_builtin_functions_arginfo.h243 ZEND_FUNCTION(strncasecmp);
H A Dzend_config.w32.h45 #define strncasecmp(s1, s2, n) _strnicmp(s1, s2, n) macro
H A Dzend_language_scanner.l420 if (strncasecmp((char*)pos2, "_HALT_COMPILER", sizeof("_HALT_COMPILER")-1) == 0) { in zend_multibyte_detect_unicode()
2288 || (!strncasecmp((char*)YYCURSOR + 1, "php", 3) && /* <?php[ \t\r\n] */
H A Dzend_string.h418 return ZSTR_LEN(str) >= prefix_length && !strncasecmp(ZSTR_VAL(str), prefix, prefix_length); in zend_string_starts_with_cstr_ci()
H A Dzend_vm_gen.php800 if (strncasecmp($matches[0], "EXECUTE_DATA", strlen("EXECUTE_DATA")) == 0) {
802 …} else if (strncasecmp($matches[0], "ZEND_VM_DISPATCH_TO_HANDLER", strlen("ZEND_VM_DISPATCH_TO_HAN…
836 if (strncasecmp($matches[0], "EXECUTE_DATA", strlen("EXECUTE_DATA")) == 0) {
838 …} else if (strncasecmp($matches[0], "ZEND_VM_DISPATCH_TO_HANDLER", strlen("ZEND_VM_DISPATCH_TO_HAN…
870 if (strncasecmp($matches[0], "EXECUTE_DATA", strlen("EXECUTE_DATA")) == 0) {
872 …} else if (strncasecmp($matches[0], "ZEND_VM_DISPATCH_TO_HANDLER", strlen("ZEND_VM_DISPATCH_TO_HAN…
894 if (strncasecmp($matches[0], "EXECUTE_DATA", strlen("EXECUTE_DATA")) == 0) {
896 …} else if (strncasecmp($matches[0], "ZEND_VM_DISPATCH_TO_HANDLER", strlen("ZEND_VM_DISPATCH_TO_HAN…
/php-src/ext/bz2/
H A Dbz2.c189 if (strncasecmp("compress.bzip2://", path, 17) == 0) { in _php_stream_bz2open()
/php-src/ext/curl/
H A Dconfig.m456 if (strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1) == 0) {
/php-src/ext/date/
H A Dphp_date.c5306 …if ((what & PHP_DATE_TIMEZONE_GROUP_AFRICA) && strncasecmp(id, "Africa/", 7) == 0) return… in check_id_allowed()
5307 …if ((what & PHP_DATE_TIMEZONE_GROUP_AMERICA) && strncasecmp(id, "America/", 8) == 0) return… in check_id_allowed()
5308 …if ((what & PHP_DATE_TIMEZONE_GROUP_ANTARCTICA) && strncasecmp(id, "Antarctica/", 11) == 0) return… in check_id_allowed()
5309 …if ((what & PHP_DATE_TIMEZONE_GROUP_ARCTIC) && strncasecmp(id, "Arctic/", 7) == 0) return… in check_id_allowed()
5310 …if ((what & PHP_DATE_TIMEZONE_GROUP_ASIA) && strncasecmp(id, "Asia/", 5) == 0) return… in check_id_allowed()
5311 …if ((what & PHP_DATE_TIMEZONE_GROUP_ATLANTIC) && strncasecmp(id, "Atlantic/", 9) == 0) return… in check_id_allowed()
5312 …if ((what & PHP_DATE_TIMEZONE_GROUP_AUSTRALIA) && strncasecmp(id, "Australia/", 10) == 0) return… in check_id_allowed()
5313 …if ((what & PHP_DATE_TIMEZONE_GROUP_EUROPE) && strncasecmp(id, "Europe/", 7) == 0) return… in check_id_allowed()
5314 …if ((what & PHP_DATE_TIMEZONE_GROUP_INDIAN) && strncasecmp(id, "Indian/", 7) == 0) return… in check_id_allowed()
5315 …if ((what & PHP_DATE_TIMEZONE_GROUP_PACIFIC) && strncasecmp(id, "Pacific/", 8) == 0) return… in check_id_allowed()
[all …]
/php-src/ext/dom/
H A Ddocument.c1288 if (strncasecmp(source, "file://",7) == 0 && ':' == source[8]) { in _dom_get_valid_file_path()
1293 if (strncasecmp(source, "file:///",8) == 0) { in _dom_get_valid_file_path()
1300 } else if (strncasecmp(source, "file://localhost/",17) == 0) { in _dom_get_valid_file_path()
/php-src/ext/filter/
H A Dlogical_filters.c298 if (strncasecmp(str, "on", 2) == 0) { in php_filter_boolean()
300 } else if (strncasecmp(str, "no", 2) == 0) { in php_filter_boolean()
307 if (strncasecmp(str, "yes", 3) == 0) { in php_filter_boolean()
309 } else if (strncasecmp(str, "off", 3) == 0) { in php_filter_boolean()
316 if (strncasecmp(str, "true", 4) == 0) { in php_filter_boolean()
323 if (strncasecmp(str, "false", 5) == 0) { in php_filter_boolean()
/php-src/ext/iconv/
H A Diconv.c311 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler()
/php-src/ext/ldap/
H A Dldap.c43 #undef strncasecmp
/php-src/ext/libxml/
H A Dlibxml.c411 if (strncasecmp(resolved_path, "file:/", pre_len) == 0 in php_libxml_streams_IO_open_wrapper()
H A Dmime_sniff.c294 …&& strncasecmp(parameter_name, "charset", strlen("charset")) == 0 /* Because of lowercasing in ste… in php_libxml_sniff_charset_from_string()
/php-src/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_encoding.c342 if (strncasecmp((*encoding)->name, name, name_len) == 0) { in mbfl_name2encoding_ex()
/php-src/ext/mbstring/
H A Dmbstring.c333 if (strncasecmp(p1, "auto", p1_length) == 0) { in php_mb_parse_encoding_list()
/php-src/ext/mysqli/
H A Dmysqli_nonapi.c141 if (strlen(SAFE_STR(hostname)) > 2 && !strncasecmp(hostname, "p:", 2)) {
/php-src/ext/mysqlnd/
H A Dmysqlnd_connection.c523 if (hostname.l == sizeof("localhost") - 1 && !strncasecmp(hostname.s, "localhost", hostname.l)) {
/php-src/ext/openssl/
H A Dxp_ssl.c435 if (prefix_len && strncasecmp(subjectname, certname, prefix_len) != 0) { in php_openssl_matches_wildcard_name()
/php-src/ext/pdo/tests/
H A Dbug_36798.phpt12 if (!strncasecmp(getenv('PDOTEST_DSN'), 'oci', strlen('oci'))){
14 } elseif (!strncasecmp(getenv('PDOTEST_DSN'), 'dblib', strlen('dblib'))) {
16 } elseif (!strncasecmp(getenv('PDOTEST_DSN'), 'odbc', strlen('odbc'))) {
H A Dbug_38394.phpt9 if (!strncasecmp(getenv('PDOTEST_DSN'), 'sqlite2', strlen('sqlite2'))) die('skip not relevant for p…
H A Dbug_43130.phpt9 if (!strncasecmp(getenv('PDOTEST_DSN'), 'sqlite', strlen('sqlite'))) die('skip not relevant for sql…
10 if (!strncasecmp(getenv('PDOTEST_DSN'), 'pgsql', strlen('pgsql'))) die('skip not relevant for pgsql…
11 if (!strncasecmp(getenv('PDOTEST_DSN'), 'oci', strlen('oci'))) die('skip not relevant for oci drive…
12 if (!strncasecmp(getenv('PDOTEST_DSN'), 'firebird', strlen('firebird'))) die('skip not relevant for…
13 if (!strncasecmp(getenv('PDOTEST_DSN'), 'odbc', strlen('odbc'))) die('skip not relevant for odbc dr…

Completed in 127 milliseconds

1234