/php-src/Zend/tests/ |
H A D | 006.phpt | 2 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 D | zend_builtin_functions.c | 363 ZEND_FUNCTION(strncasecmp) in ZEND_FUNCTION() argument 2123 if (strncasecmp(ZSTR_VAL(extension_name), "zend", sizeof("zend"))) { in ZEND_FUNCTION()
|
H A D | zend_builtin_functions.stub.php | 32 function strncasecmp(string $string1, string $string2, int $length): int {} function
|
H A D | zend_builtin_functions_arginfo.h | 243 ZEND_FUNCTION(strncasecmp);
|
H A D | zend_config.w32.h | 45 #define strncasecmp(s1, s2, n) _strnicmp(s1, s2, n) macro
|
H A D | zend_language_scanner.l | 420 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 D | zend_string.h | 418 return ZSTR_LEN(str) >= prefix_length && !strncasecmp(ZSTR_VAL(str), prefix, prefix_length); in zend_string_starts_with_cstr_ci()
|
H A D | zend_vm_gen.php | 800 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 D | bz2.c | 189 if (strncasecmp("compress.bzip2://", path, 17) == 0) { in _php_stream_bz2open()
|
/php-src/ext/curl/ |
H A D | config.m4 | 56 if (strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1) == 0) {
|
/php-src/ext/date/ |
H A D | php_date.c | 5306 …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 D | document.c | 1288 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 D | logical_filters.c | 298 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 D | iconv.c | 311 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler()
|
/php-src/ext/ldap/ |
H A D | ldap.c | 43 #undef strncasecmp
|
/php-src/ext/libxml/ |
H A D | libxml.c | 411 if (strncasecmp(resolved_path, "file:/", pre_len) == 0 in php_libxml_streams_IO_open_wrapper()
|
H A D | mime_sniff.c | 294 …&& 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 D | mbfl_encoding.c | 342 if (strncasecmp((*encoding)->name, name, name_len) == 0) { in mbfl_name2encoding_ex()
|
/php-src/ext/mbstring/ |
H A D | mbstring.c | 333 if (strncasecmp(p1, "auto", p1_length) == 0) { in php_mb_parse_encoding_list()
|
/php-src/ext/mysqli/ |
H A D | mysqli_nonapi.c | 141 if (strlen(SAFE_STR(hostname)) > 2 && !strncasecmp(hostname, "p:", 2)) {
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_connection.c | 523 if (hostname.l == sizeof("localhost") - 1 && !strncasecmp(hostname.s, "localhost", hostname.l)) {
|
/php-src/ext/openssl/ |
H A D | xp_ssl.c | 435 if (prefix_len && strncasecmp(subjectname, certname, prefix_len) != 0) { in php_openssl_matches_wildcard_name()
|
/php-src/ext/pdo/tests/ |
H A D | bug_36798.phpt | 12 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 D | bug_38394.phpt | 9 if (!strncasecmp(getenv('PDOTEST_DSN'), 'sqlite2', strlen('sqlite2'))) die('skip not relevant for p…
|
H A D | bug_43130.phpt | 9 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…
|