Home
last modified time | relevance | path

Searched refs:strncmp (Results 1 – 25 of 96) sorted by path

1234

/PHP-7.4/Zend/tests/
H A D004.phpt2 strncmp() tests
6 var_dump(strncmp("", ""));
7 var_dump(strncmp("", "", 100));
8 var_dump(strncmp("aef", "dfsgbdf", -1));
9 var_dump(strncmp("fghjkl", "qwer", 0));
10 var_dump(strncmp("qwerty", "qwerty123", 6));
11 var_dump(strncmp("qwerty", "qwerty123", 7));
16 Warning: strncmp() expects exactly 3 parameters, 2 given in %s on line %d
/PHP-7.4/Zend/
H A Dzend_builtin_functions.c37 static ZEND_FUNCTION(strncmp);
249 ZEND_FE(strncmp, arginfo_strncmp)
614 ZEND_FUNCTION(strncmp) in ZEND_FUNCTION() argument
H A Dzend_virtual_cwd.c802 if (strncmp(substitutename, "\\??\\Volume{",11) == 0 in tsrm_realpath_r()
803 || strncmp(substitutename, "\\\\?\\Volume{",11) == 0 in tsrm_realpath_r()
804 || strncmp(substitutename, "\\??\\UNC\\", 8) == 0 in tsrm_realpath_r()
810 if (strncmp(substitutename, "\\??\\", 4) == 0 in tsrm_realpath_r()
811 || strncmp(substitutename, "\\\\?\\", 4) == 0) { in tsrm_realpath_r()
/PHP-7.4/ext/curl/
H A Dinterface.c161 …if (len > sizeof("file://") - 1 && '/' != url[sizeof("file://") - 1] && !strncmp("file://", url, s… in php_curl_option_url()
/PHP-7.4/ext/dba/
H A Ddba_db4.c50 && (!strncmp(msg, "fop_read_meta", sizeof("fop_read_meta")-1) in php_dba_db4_errcall_fcn()
51 || !strncmp(msg, "BDB0004 fop_read_meta", sizeof("BDB0004 fop_read_meta")-1))) { in php_dba_db4_errcall_fcn()
/PHP-7.4/ext/exif/
H A Dexif.c3182 && strncmp(maker_note->id_string, value_ptr, maker_note->id_string_len)) in exif_process_IFD_in_MAKERNOTE()
/PHP-7.4/ext/ffi/
H A Dffi.c4575 if (strncmp(code_pos, "#define FFI_SCOPE", sizeof("#define FFI_SCOPE") - 1) == 0 in zend_ffi_parse_directives()
4622 } else if (strncmp(code_pos, "#define FFI_LIB", sizeof("#define FFI_LIB") - 1) == 0 in zend_ffi_parse_directives()
/PHP-7.4/ext/fileinfo/libmagic/
H A Dapprentice.c270 if (strncmp(l, p->name, p->len) == 0) { in get_type()
1577 if (strncmp(l, p->name, p->len) == 0 && in get_cond()
H A Dapptype.c132 if (strncmp((const char *)buf, "MZ", 2)) in file_os2_apptype()
H A Dder.c300 if (strncmp(buf, s, slen) != 0) in der_cmp()
H A Dis_tar.c126 if (strncmp(header->header.magic, GNUTMAGIC, in is_tar()
130 if (strncmp(header->header.magic, TMAGIC, in is_tar()
/PHP-7.4/ext/gd/libgd/
H A Dgd_gif_in.c158 if (strncmp((char *)buf,"GIF",3) != 0) { in gdImageCreateFromGifCtx()
H A Dgd_jpeg.c454 …if ((marker->marker == (JPEG_APP0 + 14)) && (marker->data_length >= 12) && (!strncmp((const char *… in gdImageCreateFromJpegCtxEx()
H A Dgdkanji.c206 else if (strncmp (lang, "ja", 2) == 0) in DetectKanjiCode()
/PHP-7.4/ext/imap/
H A Dphp_imap.c780 if (strncmp(qlist->name, "STORAGE", 7) == 0) in mail_getquota()
5026 if (strncmp(str, "[ALERT] ", 8) == 0) { in mm_notify()
/PHP-7.4/ext/intl/locale/
H A Dlocale_methods.c803 if( strncmp(key_name , LOC_PRIVATE_TAG , 7) == 0 ){ in add_prefix()
1502 …if(cur_arr[i*2] != NULL && strlen(cur_arr[i*2]) == saved_pos && strncmp(cur_loc_range, cur_arr[i*2… in lookup_loc_range()
/PHP-7.4/ext/json/
H A Djson_scanner.re177 int cmp = strncmp((char *) (s->token + negative), LONG_MIN_DIGITS, PHP_JSON_INT_MAX_LENGTH);
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_connection.c1447 && !strncmp(p, MARIA_DB_VERSION_HACK_PREFIX, sizeof(MARIA_DB_VERSION_HACK_PREFIX)-1))
/PHP-7.4/ext/oci8/
H A Doci8_statement.c409 …} else if (((int) column->name_len == column_name_len) && (!strncmp(column->name, column_name, col… in php_oci_statement_get_column()
/PHP-7.4/ext/odbc/
H A Dphp_odbc.c1543 if (!strncmp(state,"S1015",5)) { in PHP_FUNCTION()
/PHP-7.4/ext/opcache/
H A Dzend_shared_alloc.c173 if (strncmp(ZCG(accel_directives).memory_model, "cgi", sizeof("cgi")) == 0) { in zend_shared_alloc_startup()
/PHP-7.4/ext/openssl/
H A Dxp_ssl.c2696 if (strncmp(proto, "ssl", protolen) == 0) { in php_openssl_ssl_socket_factory()
2699 } else if (strncmp(proto, "sslv2", protolen) == 0) { in php_openssl_ssl_socket_factory()
2703 } else if (strncmp(proto, "sslv3", protolen) == 0) { in php_openssl_ssl_socket_factory()
2713 } else if (strncmp(proto, "tls", protolen) == 0) { in php_openssl_ssl_socket_factory()
2716 } else if (strncmp(proto, "tlsv1.0", protolen) == 0) { in php_openssl_ssl_socket_factory()
2719 } else if (strncmp(proto, "tlsv1.1", protolen) == 0) { in php_openssl_ssl_socket_factory()
2729 } else if (strncmp(proto, "tlsv1.2", protolen) == 0) { in php_openssl_ssl_socket_factory()
2739 } else if (strncmp(proto, "tlsv1.3", protolen) == 0) { in php_openssl_ssl_socket_factory()
/PHP-7.4/ext/pcre/pcre2lib/
H A Dpcre2_compile.c4553 PRIV(strncmp)(name, ng->name, (PCRE2_SIZE)namelen) == 0) in parse_regex()
5211 if (PRIV(strncmp)(name, slot+IMM2_SIZE, length) == 0 && in find_dupname_details()
5240 if (PRIV(strncmp)(name, slot+IMM2_SIZE, length) != 0 || in find_dupname_details()
6244 PRIV(strncmp)(name, ng->name, length) == 0) in compile_branch()
6664 PRIV(strncmp)(name, ng->name, length) == 0) in compile_branch()
9196 if (length == ng->length && PRIV(strncmp)(name, ng->name, length) == 0) in get_branchlength()
H A Dpcre2_internal.h186 #define strncmp(s1,s2,m) _strncmp(s1,s2,m) macro
H A Dpcre2_string_utils.c157 PRIV(strncmp)(PCRE2_SPTR str1, PCRE2_SPTR str2, size_t len) in PRIV() argument

Completed in 268 milliseconds

1234