Home
last modified time | relevance | path

Searched refs:memcmp (Results 26 – 50 of 98) sorted by relevance

1234

/PHP-7.1/ext/standard/
H A Dcrypt_sha512.c776 if (memcmp (tests[cnt].result, sum, 64) != 0) { in main()
786 if (memcmp (tests[cnt].result, sum, 64) != 0) { in main()
801 if (memcmp (expected, sum, 64) != 0) { in main()
H A Dtype.c252 && !memcmp(ZSTR_VAL(ce->name), INCOMPLETE_CLASS, sizeof(INCOMPLETE_CLASS) - 1)) { in php_is_type()
H A Dhtml.c397 (!memcmp("pass", charset_hint, 4) || in determine_charset()
398 !memcmp("auto", charset_hint, 4))) { in determine_charset()
865 if (memcmp(start, s->entity, length) == 0) { in resolve_named_entity_html()
H A Dhttp_fopen_wrapper.c368 || (Z_STRLEN_P(tmpzval) == 3 && memcmp("GET", Z_STRVAL_P(tmpzval), 3) == 0) in php_stream_url_wrap_http_ex()
369 || (Z_STRLEN_P(tmpzval) == 4 && memcmp("HEAD",Z_STRVAL_P(tmpzval), 4) == 0) in php_stream_url_wrap_http_ex()
/PHP-7.1/sapi/phpdbg/
H A Dphpdbg_utils.c112 return str[0] && str[1] && memcmp(str, "0x", 2) == 0; in phpdbg_is_addr()
164 if (memcmp(file, "[no active file]", sizeof("[no active file]")) == 0) { in phpdbg_current_file()
236 memcmp(name, color->name, name_length) == SUCCESS) { in phpdbg_get_color()
H A Dphpdbg_watch.c135 …if (memcmp(&((Bucket *) oldPtr)->h, &((Bucket *) newPtr)->h, sizeof(Bucket) - sizeof(zval) /* key/… in phpdbg_check_watch_diff()
139 return memcmp(oldPtr, newPtr, sizeof(zend_value) + sizeof(uint32_t) /* value + typeinfo */) != 0; in phpdbg_check_watch_diff()
143 return memcmp(oldPtr, newPtr, sizeof(uint32_t) /* no zend_refcounted metadata info */) != 0; in phpdbg_check_watch_diff()
145 …return memcmp(oldPtr, newPtr, *(size_t *) oldPtr + XtOffsetOf(zend_string, val) - XtOffsetOf(zend_… in phpdbg_check_watch_diff()
1300 if (scope && len >= 5 && !memcmp("$this", input, 5)) {
H A Dphpdbg_prompt.c235 if (memcmp(cmd, "<:", sizeof("<:")-1) == SUCCESS) { in phpdbg_line_init()
239 if (memcmp(cmd, ":>", sizeof(":>")-1) == SUCCESS) { in phpdbg_line_init()
418 if ((res_len != PHPDBG_G(exec_len)) || (memcmp(res, PHPDBG_G(exec), res_len) != SUCCESS)) { in PHPDBG_COMMAND()
485 if (!memcmp(sep, nl, seplen) && (*buf == '\n' || (*buf == '\r' && buf[1] == '\n'))) { in PHPDBG_COMMAND()
H A Dphpdbg_wait.c39 …if (ZSTR_LEN(auto_global->name) != sizeof("GLOBALS") - 1 || memcmp(ZSTR_VAL(auto_global->name), "G… in phpdbg_dearm_autoglobals()
/PHP-7.1/ext/phar/
H A Dtar.c183 …if (entry->filename_len == sizeof(".phar/.metadata.bin")-1 && !memcmp(entry->filename, ".phar/.met… in phar_tar_process_metadata()
234 old = (memcmp(hdr->magic, "ustar", sizeof("ustar")-1) != 0); in phar_parse_tarfile()
509 …if (entry.filename_len >= sizeof(".phar/.metadata")-1 && !memcmp(entry.filename, ".phar/.metadata"… in phar_parse_tarfile()
900 …if (entry->filename_len >= sizeof(".phar/.metadata") && !memcmp(entry->filename, ".phar/.metadata"… in phar_tar_setupmetadata()
901 …if (entry->filename_len == sizeof(".phar/.metadata.bin")-1 && !memcmp(entry->filename, ".phar/.met… in phar_tar_setupmetadata()
H A Dphar.c782 || memcmp(sig_buf+4, "GBMB", 4)) {
1318 …(z = memchr(ext_str, 'z', ext_len)) && ((ext_str + ext_len) - z >= 2) && !memcmp(z + 1, "ip", 2)) {
1323 …(z = memchr(ext_str, 't', ext_len)) && ((ext_str + ext_len) - z >= 2) && !memcmp(z + 1, "ar", 2)) {
1559 if (!memcmp(c, search, search_len)) {
1608 if (!memcmp(pos, gz_magic, 3)) {
1668 } else if (!memcmp(pos, bz_magic, 3)) {
1708 if (!memcmp(pos, zip_magic, 4)) {
1975 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint)filename_len == ZSTR_LEN(str…
1994 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint)filename_len == ZSTR_LEN(str…
H A Dstream.c911 memcmp(ZSTR_VAL(str_key), resource_from->path+1, from_len) == 0 && in phar_wrapper_rename()
936 memcmp(ZSTR_VAL(str_key), resource_from->path+1, from_len) == 0 && in phar_wrapper_rename()
954 memcmp(ZSTR_VAL(str_key), resource_from->path+1, from_len) == 0 && in phar_wrapper_rename()
/PHP-7.1/main/
H A Dfastcgi.c340 memcmp(p->var, var, var_len) == 0) { in fcgi_hash_set()
377 memcmp((*p)->var, var, var_len) == 0) { in fcgi_hash_del()
396 memcmp(p->var, var, var_len) == 0) { in fcgi_hash_get()
1339 && !memcmp(&client_sa.sa_inet.sin_addr, &allowed_clients[i].sa_inet.sin_addr, 4)) { in fcgi_is_allowed()
1348 && !memcmp(&client_sa.sa_inet6.sin6_addr, &allowed_clients[i].sa_inet6.sin6_addr, 12)) { in fcgi_is_allowed()
1354 … && !memcmp(((char *)&client_sa.sa_inet6.sin6_addr)+12, &allowed_clients[i].sa_inet.sin_addr, 4)) { in fcgi_is_allowed()
H A Dphp_variables.c119 if (memcmp(var, "this", sizeof("this")-1) == 0) { in php_register_variable_ex()
135 !memcmp(var, "GLOBALS", sizeof("GLOBALS")-1)) { in php_register_variable_ex()
669 || memcmp(ZSTR_VAL(string_key), "GLOBALS", sizeof("GLOBALS") - 1)) { in php_autoglobal_merge()
/PHP-7.1/Zend/
H A Dzend_bitset.h125 return memcmp(set1, set2, len * ZEND_BITSET_ELM_SIZE) == 0;
H A Dzend_string.c147 if (!memcmp(ZSTR_VAL(p->key), ZSTR_VAL(str), ZSTR_LEN(str))) { in zend_new_interned_string_int()
H A Dzend_ini_scanner.l378 if (memcmp(YYCURSOR, "\xef\xbb\xbf", 3) == 0) { in ini_lex()
H A Dzend_API.c2063 …if (name_len == sizeof(ZEND_DESTRUCTOR_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_DESTRUCTOR_FUNC_NAME… in zend_check_magic_method_implementation()
2065 …} else if (name_len == sizeof(ZEND_CLONE_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_CLONE_FUNC_NAME, s… in zend_check_magic_method_implementation()
2067 …} else if (name_len == sizeof(ZEND_GET_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_GET_FUNC_NAME, sizeo… in zend_check_magic_method_implementation()
2073 …} else if (name_len == sizeof(ZEND_SET_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_SET_FUNC_NAME, sizeo… in zend_check_magic_method_implementation()
2079 …} else if (name_len == sizeof(ZEND_UNSET_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_UNSET_FUNC_NAME, s… in zend_check_magic_method_implementation()
2085 …} else if (name_len == sizeof(ZEND_ISSET_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_ISSET_FUNC_NAME, s… in zend_check_magic_method_implementation()
2091 …} else if (name_len == sizeof(ZEND_CALL_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_CALL_FUNC_NAME, siz… in zend_check_magic_method_implementation()
2098 !memcmp(lcname, ZEND_CALLSTATIC_FUNC_NAME, sizeof(ZEND_CALLSTATIC_FUNC_NAME)-1) in zend_check_magic_method_implementation()
2106 …!memcmp(lcname, ZEND_TOSTRING_FUNC_NAME, sizeof(ZEND_TOSTRING_FUNC_NAME)-1) && fptr->common.num_ar… in zend_check_magic_method_implementation()
2110 …!memcmp(lcname, ZEND_DEBUGINFO_FUNC_NAME, sizeof(ZEND_DEBUGINFO_FUNC_NAME)-1) && fptr->common.num_… in zend_check_magic_method_implementation()
[all …]
H A Dzend_hash.c488 EXPECTED(memcmp(ZSTR_VAL(p->key), ZSTR_VAL(key), ZSTR_LEN(key)) == 0)) { in zend_hash_find_bucket()
511 && !memcmp(ZSTR_VAL(p->key), str, len)) { in zend_hash_str_find_bucket()
1051 memcmp(ZSTR_VAL(p->key), ZSTR_VAL(key), ZSTR_LEN(key)) == 0)) { in zend_hash_del()
1082 memcmp(ZSTR_VAL(p->key), ZSTR_VAL(key), ZSTR_LEN(key)) == 0)) { in zend_hash_del_ind()
1130 && !memcmp(ZSTR_VAL(p->key), str, len)) { in zend_hash_str_del_ind()
1174 && !memcmp(ZSTR_VAL(p->key), str, len)) { in zend_hash_str_del()
2342 result = memcmp(ZSTR_VAL(p1->key), ZSTR_VAL(p2->key), ZSTR_LEN(p1->key)); in zend_hash_compare_impl()
/PHP-7.1/ext/gd/libgd/
H A Dgd_gif_in.c161 if (memcmp((char *)buf+3, "87a", 3) == 0) { in gdImageCreateFromGifCtx()
163 } else if (memcmp((char *)buf+3, "89a", 3) == 0) { in gdImageCreateFromGifCtx()
/PHP-7.1/ext/exif/
H A Dexif.c2628 if (!memcmp(szValuePtr, "UNICODE\0", 8)) { in exif_process_user_comment()
2635 if (ByteCount >=2 && !memcmp(szValuePtr, "\xFE\xFF", 2)) { in exif_process_user_comment()
2661 } else if (!memcmp(szValuePtr, "ASCII\0\0\0", 8)) { in exif_process_user_comment()
2665 } else if (!memcmp(szValuePtr, "JIS\0\0\0\0\0", 8)) { in exif_process_user_comment()
2683 } else if (!memcmp(szValuePtr, "\0\0\0\0\0\0\0\0", 8)) { in exif_process_user_comment()
3245 if (memcmp(CharBuf, "II", 2) == 0) { in exif_process_TIFF_in_JPEG()
3247 } else if (memcmp(CharBuf, "MM", 2) == 0) { in exif_process_TIFF_in_JPEG()
3293 if (length <= 8 || memcmp(CharBuf+2, ExifHeader, 6)) { in exif_process_APP1()
3504 if (memcmp(data, "\xFF\xD8\xFF", 3)) { in exif_scan_thumbnail()
3845 if (!memcmp(file_header, "II\x2A\x00", 4)) { in exif_scan_FILE_header()
[all …]
/PHP-7.1/ext/opcache/
H A DZendAccelerator.c159 return memcmp(filename, "file://", sizeof("file://") - 1) == 0 || in is_cacheable_stream_path()
160 memcmp(filename, "phar://", sizeof("phar://") - 1) == 0; in is_cacheable_stream_path()
433 if (!memcmp(ZSTR_VAL(p->key), ZSTR_VAL(str), ZSTR_LEN(str))) { in accel_find_interned_string()
472 if (!memcmp(ZSTR_VAL(p->key), ZSTR_VAL(str), ZSTR_LEN(str))) { in accel_new_interned_string()
907memcmp(ZSTR_VAL(persistent_script->script.filename), ZSTR_VAL(file_handle->opened_path), ZSTR_LEN(… in do_validate_timestamps()
915memcmp(ZSTR_VAL(persistent_script->script.filename), ZSTR_VAL(full_path_ptr), ZSTR_LEN(full_path_p… in do_validate_timestamps()
1222 …!memcmp(ZSTR_VAL(filename) + ZSTR_LEN(filename) - (sizeof(".phar")-1), ".phar", sizeof(".phar")-1)… in is_phar_file()
1387 memcmp(key, "phar://", sizeof("phar://") - 1) != 0 && in cache_script_in_shared_memory()
1389 memcmp(ZSTR_VAL(new_persistent_script->script.filename), key, key_length) != 0)) { in cache_script_in_shared_memory()
/PHP-7.1/ext/intl/grapheme/
H A Dgrapheme_util.c367 if (memcmp(e, needle, needle_len) == 0) { in grapheme_strrpos_ascii()
/PHP-7.1/ext/mysqlnd/
H A Dmysqlnd_net.c273 if (!memcmp(scheme, "tcp://", sizeof("tcp://") - 1)) { in MYSQLND_METHOD()
293 if (scheme_len > (sizeof("pipe://") - 1) && !memcmp(scheme, "pipe://", sizeof("pipe://") - 1)) { in MYSQLND_METHOD()
295 } else if ((scheme_len > (sizeof("tcp://") - 1) && !memcmp(scheme, "tcp://", sizeof("tcp://") - 1)) in MYSQLND_METHOD()
297 (scheme_len > (sizeof("unix://") - 1) && !memcmp(scheme, "unix://", sizeof("unix://") - 1))) in MYSQLND_METHOD()
/PHP-7.1/ext/intl/breakiterator/
H A Dbreakiterator_iterators.cpp259 && memcmp("getrulestatus", ZSTR_VAL(lc_method_name), ZSTR_LEN(lc_method_name)) == 0) { in IntlPartsIterator_get_method()
/PHP-7.1/ext/fileinfo/libmagic/
H A Dcompress.c128 if (memcmp(buf, compr[i].magic, compr[i].maglen) == 0 && in file_zmagic()

Completed in 133 milliseconds

1234