Home
last modified time | relevance | path

Searched refs:memcmp (Results 1 – 25 of 89) sorted by relevance

1234

/PHP-7.4/ext/ffi/tests/
H A D009.phpt2 FFI 009: memcpy(), memcmp(), memset() and sizeof()
13 var_dump(FFI::memcmp($b, $a, FFI::sizeof($a)));
16 var_dump(FFI::memcmp($b, $a, FFI::sizeof($a)));
H A D040.phpt46 var_dump(FFI::memcmp($x, $y[0], 4));
48 var_dump(FFI::memcmp($x, $y[0], 4));
/PHP-7.4/ext/standard/
H A Dimage.c703 if (!memcmp(&box_type, jp2c_box_id, 4)) in php_handle_jp2()
1141 if (memcmp(buf, sig, 3)) { in php_handle_webp()
1319 if (!memcmp(filetype, php_sig_gif, 3)) { in php_getimagetype()
1321 } else if (!memcmp(filetype, php_sig_jpg, 3)) { in php_getimagetype()
1323 } else if (!memcmp(filetype, php_sig_png, 3)) { in php_getimagetype()
1328 if (!memcmp(filetype, php_sig_png, 8)) { in php_getimagetype()
1334 } else if (!memcmp(filetype, php_sig_swf, 3)) { in php_getimagetype()
1336 } else if (!memcmp(filetype, php_sig_swc, 3)) { in php_getimagetype()
1338 } else if (!memcmp(filetype, php_sig_psd, 3)) { in php_getimagetype()
1349 if (!memcmp(filetype+8, php_sig_webp, 4)) { in php_getimagetype()
[all …]
H A Dcrypt_blowfish.c865 !memcmp(p, buf.s, 7 + 22) && in php_crypt_blowfish_rn()
866 !memcmp(p + (7 + 22), test_hash, 31 + 1 + 1 + 1)); in php_crypt_blowfish_rn()
875 !memcmp(ae, ye, sizeof(ae)) && in php_crypt_blowfish_rn()
876 !memcmp(ai, yi, sizeof(ai)); in php_crypt_blowfish_rn()
H A Dcrypt_sha256.c692 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main()
702 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main()
718 if (memcmp(expected, sum, 32) != 0) { in main()
H A Dcrypt_sha512.c760 if (memcmp (tests[cnt].result, sum, 64) != 0) { in main()
770 if (memcmp (tests[cnt].result, sum, 64) != 0) { in main()
785 if (memcmp (expected, sum, 64) != 0) { in main()
/PHP-7.4/ext/opcache/
H A Dzend_accelerator_hash.c99 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_update()
157 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_find_ex()
245 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_unlink()
/PHP-7.4/ext/sodium/
H A Dsodium_pwhash.c127 if (!memcmp(p, "$argon2i$", strlen("$argon2i$"))) { in php_sodium_argon2_get_info()
129 } else if (!memcmp(p, "$argon2id$", strlen("$argon2id$"))) { in php_sodium_argon2_get_info()
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_stdio.c178 !memcmp(buf, &FPM_STDIO_CMD_FLUSH[cmd_pos], sizeof(FPM_STDIO_CMD_FLUSH) - cmd_pos)) {
195 if (!memcmp(buf + pos, FPM_STDIO_CMD_FLUSH, sizeof(FPM_STDIO_CMD_FLUSH))) {
201 } else if (!memcmp(buf + pos, FPM_STDIO_CMD_FLUSH, in_buf - pos)) {
/PHP-7.4/ext/phar/
H A Ddirstream.c192 … && (manifest->nNumOfElements == 0)) || (dirlen >= sizeof(".phar")-1 && !memcmp(dir, ".phar", size… in phar_make_dirstream()
218 if (keylen >= sizeof(".phar")-1 && !memcmp(ZSTR_VAL(str_key), ".phar", sizeof(".phar")-1)) { in phar_make_dirstream()
240 if (0 != memcmp(ZSTR_VAL(str_key), dir, dirlen)) { in phar_make_dirstream()
388 if (ZSTR_LEN(str_key) > i_len && 0 == memcmp(ZSTR_VAL(str_key), internal_file, i_len)) { in phar_wrapper_open_dir()
618 memcmp(ZSTR_VAL(str_key), ZSTR_VAL(resource->path)+1, path_len) == 0 && in phar_wrapper_rmdir()
635 memcmp(ZSTR_VAL(str_key), ZSTR_VAL(resource->path)+1, path_len) == 0 && in phar_wrapper_rmdir()
H A Dutil.c177 if (path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) { in phar_mount_entry()
182 is_phar = (filename_len > 7 && !memcmp(filename, "phar://", 7)); in phar_mount_entry()
262 …if (PHAR_G(last_phar) && !memcmp(fname, "phar://", 7) && fname_len - 7 >= PHAR_G(last_phar_name_le… in phar_find_in_include_path()
968 …if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_pha… in phar_get_archive()
1040 …if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))… in phar_get_archive()
1070 if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { in phar_get_archive()
1224 if (security && path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) { in phar_get_entry_info_dir()
1629 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
1669 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
1709 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
[all …]
H A Dphar_object.c68 if (code > (size_t)entry_len && !memcmp(path_info, entry, entry_len)) { in phar_mung_server_vars()
92 if (code > basename_len && !memcmp(path_info, basename, basename_len)) { in phar_mung_server_vars()
105 if (code > basename_len && !memcmp(path_info, basename, basename_len)) { in phar_mung_server_vars()
463 if (path_len > 7 && !memcmp(path, "phar://", 7)) { in PHP_METHOD()
1339 if ((size_t)arch_len == fname_len && !memcmp(arch, fname, arch_len)) { in PHP_METHOD()
1630 if (str_key_len >= sizeof(".phar")-1 && !memcmp(str_key, ".phar", sizeof(".phar")-1)) { in phar_build()
3467 if (oldfile_len >= sizeof(".phar")-1 && !memcmp(oldfile, ".phar", sizeof(".phar")-1)) { in PHP_METHOD()
3474 if (newfile_len >= sizeof(".phar")-1 && !memcmp(newfile, ".phar", sizeof(".phar")-1)) { in PHP_METHOD()
3569 if (fname_len >= sizeof(".phar")-1 && !memcmp(fname, ".phar", sizeof(".phar")-1)) { in PHP_METHOD()
3613 if (fname_len >= sizeof(".phar")-1 && !memcmp(fname, ".phar", sizeof(".phar")-1)) { in PHP_METHOD()
[all …]
/PHP-7.4/ext/opcache/Optimizer/
H A Dpass1_5.c136memcmp(Z_STRVAL(ZEND_OP2_LITERAL(opline)), "__COMPILER_HALT_OFFSET__", sizeof("__COMPILER_HALT_OFF… in zend_optimizer_pass1()
343 !memcmp(Z_STRVAL(ZEND_OP2_LITERAL(init_opline)), in zend_optimizer_pass1()
347 !memcmp(Z_STRVAL(ZEND_OP2_LITERAL(init_opline)), in zend_optimizer_pass1()
384 !memcmp(Z_STRVAL(ZEND_OP2_LITERAL(init_opline)), in zend_optimizer_pass1()
426 !memcmp(Z_STRVAL(ZEND_OP2_LITERAL(init_opline)), in zend_optimizer_pass1()
448 !memcmp(Z_STRVAL(ZEND_OP2_LITERAL(init_opline)), in zend_optimizer_pass1()
/PHP-7.4/ext/sqlite3/tests/
H A Dsqlite3_36_create_collation.phpt20 $defaultSort = $db->query('SELECT s FROM t ORDER BY s'); //memcmp() sort
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_set.c256 if (param->len == sizeof("opcode") - 1 && !memcmp(param->str, "opcode", sizeof("opcode"))) { in PHPDBG_SET()
258 } else if (param->len == sizeof("line") - 1 && !memcmp(param->str, "line", sizeof("line"))) { in PHPDBG_SET()
H A Dphpdbg_cmd.c267 (memcmp(l->str, r->str, l->len) == SUCCESS); in phpdbg_match_param()
282 return (memcmp( in phpdbg_match_param()
299 if (memcmp(l->method.class, r->method.class, lengths[0]) == SUCCESS) { in phpdbg_match_param()
304 return (memcmp( in phpdbg_match_param()
H A Dphpdbg_bp.c348 …ur) ? file[filelen - ZSTR_LEN(cur) - 1] : '?', filelen > ZSTR_LEN(cur) ? memcmp(file + filelen - Z… in phpdbg_resolve_pending_file_break_ex()
356 …(cur) - 1] == '/' || WIN32_PATH_CHECK)) || filelen == ZSTR_LEN(cur)) && !memcmp(file + filelen - Z… in phpdbg_resolve_pending_file_break_ex()
582 …if (PHPDBG_G(ops) != NULL && !memcmp(PHPDBG_G(ops)->filename, new_break->class_name, new_break->cl… in phpdbg_resolve_opline_break()
595 …cope == NULL && new_break->class_len == ZSTR_LEN(op_array->filename) && !memcmp(ZSTR_VAL(op_array-… in phpdbg_resolve_opline_break()
1050 if (len == param->len && memcmp(param->str, str, len) == SUCCESS) { in phpdbg_find_breakpoint_param()
1062 return (memcmp( in phpdbg_find_breakpoint_param()
1079 …if (lengths[0] == lengths[1] && memcmp(param->method.class, ops->scope->name, lengths[0]) == SUCCE… in phpdbg_find_breakpoint_param()
1083 …if (lengths[0] == lengths[1] && memcmp(param->method.name, ops->function_name, lengths[0]) == SUCC… in phpdbg_find_breakpoint_param()
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()
/PHP-7.4/Zend/
H A Dzend_constants.c215 !memcmp(name, "__COMPILER_HALT_OFFSET__", sizeof("__COMPILER_HALT_OFFSET__")-1)) { in zend_get_special_constant()
311 return memcmp( in is_access_deprecated()
318 return memcmp(access_name, ZSTR_VAL(c->name), ZSTR_LEN(c->name)) != 0; in is_access_deprecated()
521 …&& memcmp(ZSTR_VAL(name), "\0__COMPILER_HALT_OFFSET__", sizeof("\0__COMPILER_HALT_OFFSET__")) == 0… in zend_register_constant()
H A Dzend_language_scanner.l375 if (!memcmp(LANG_SCNG(script_org), BOM_UTF32_BE, sizeof(BOM_UTF32_BE)-1)) { in zend_multibyte_detect_unicode()
378 } else if (!memcmp(LANG_SCNG(script_org), BOM_UTF32_LE, sizeof(BOM_UTF32_LE)-1)) { in zend_multibyte_detect_unicode()
381 } else if (!memcmp(LANG_SCNG(script_org), BOM_UTF16_BE, sizeof(BOM_UTF16_BE)-1)) { in zend_multibyte_detect_unicode()
384 } else if (!memcmp(LANG_SCNG(script_org), BOM_UTF16_LE, sizeof(BOM_UTF16_LE)-1)) { in zend_multibyte_detect_unicode()
387 } else if (!memcmp(LANG_SCNG(script_org), BOM_UTF8, sizeof(BOM_UTF8)-1)) { in zend_multibyte_detect_unicode()
2416 if (heredoc_label->length < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, s, heredoc_label->length)) {
2685 …if (IS_LABEL_START(*YYCURSOR) && heredoc_label->length < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, h…
2809 …if (IS_LABEL_START(*YYCURSOR) && heredoc_label->length < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, h…
/PHP-7.4/ext/dba/libflatfile/
H A Dflatfile.c130 if (size == num && !memcmp(buf, key, size)) { in flatfile_delete()
179 if (!memcmp(buf, key, size)) { in flatfile_findkey()
/PHP-7.4/ext/dba/libcdb/
H A Dcdb.c57 if (memcmp(buf, key, n)) in cdb_match()
/PHP-7.4/main/streams/
H A Dmemory.c647 if (memcmp(path, "data:", 5)) { in php_stream_url_wrap_rfc2397()
685 …} else if (semi != path || mlen != sizeof(";base64")-1 || memcmp(path, ";base64", sizeof(";base64"… in php_stream_url_wrap_rfc2397()
697 if (mlen != sizeof("base64")-1 || memcmp(path, "base64", sizeof("base64")-1)) { in php_stream_url_wrap_rfc2397()
711 if (plen != sizeof("mediatype")-1 || memcmp(path, "mediatype", sizeof("mediatype")-1)) { in php_stream_url_wrap_rfc2397()
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_vio.c260 if (!memcmp(scheme.s, "tcp://", sizeof("tcp://") - 1)) { in MYSQLND_METHOD()
282 if (scheme.l > (sizeof("pipe://") - 1) && !memcmp(scheme.s, "pipe://", sizeof("pipe://") - 1)) { in MYSQLND_METHOD()
284 } else if ((scheme.l > (sizeof("tcp://") - 1) && !memcmp(scheme.s, "tcp://", sizeof("tcp://") - 1)) in MYSQLND_METHOD()
286 (scheme.l > (sizeof("unix://") - 1) && !memcmp(scheme.s, "unix://", sizeof("unix://") - 1))) in MYSQLND_METHOD()
/PHP-7.4/ext/date/lib/
H A Dparse_tz.c145 if (memcmp(*tzf, "PHP", 3) == 0) { in read_preamble()
148 } else if (memcmp(*tzf, "TZif", 4) == 0) { in read_preamble()
460 if (memcmp(*tzf, "TZif2", 5) == 0) { in skip_64bit_preamble()
463 } else if (memcmp(*tzf, "TZif3", 5) == 0) { in skip_64bit_preamble()

Completed in 87 milliseconds

1234