Home
last modified time | relevance | path

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

1234

/php-src/ext/standard/libavifinfo/
H A Davifinfo.c280 !memcmp(box->type, "meta", 4) || !memcmp(box->type, "pitm", 4) || in AvifInfoInternalParseBox()
281 !memcmp(box->type, "ipma", 4) || !memcmp(box->type, "ispe", 4) || in AvifInfoInternalParseBox()
282 !memcmp(box->type, "pixi", 4) || !memcmp(box->type, "iref", 4) || in AvifInfoInternalParseBox()
283 !memcmp(box->type, "auxC", 4); in AvifInfoInternalParseBox()
329 if (!memcmp(box.type, "ispe", 4)) { in ParseIpco()
347 } else if (!memcmp(box.type, "pixi", 4)) { in ParseIpco()
445 if (!memcmp(box.type, "ipco", 4)) { in ParseIprp()
531 if (!memcmp(box.type, "dimg", 4)) { in ParseIref()
590 if (!memcmp(box.type, "pitm", 4)) { in ParseMeta()
634 if (!memcmp(data, "avif", 4) || !memcmp(data, "avis", 4)) { in ParseFtyp()
[all …]
/php-src/ext/ffi/tests/
H A D009.phpt2 FFI 009: memcpy(), memcmp(), memset() and sizeof()
15 var_dump(FFI::memcmp($b, $a, FFI::sizeof($a)));
18 var_dump(FFI::memcmp($b, $a, FFI::sizeof($a)));
H A D040.phpt49 var_dump(FFI::memcmp($x, $y[0], 4));
51 var_dump(FFI::memcmp($x, $y[0], 4));
/php-src/ext/standard/
H A Dimage.c675 if (!memcmp(&box_type, jp2c_box_id, 4)) in php_handle_jp2()
1106 if (memcmp(buf, sig, 3)) { in php_handle_webp()
1361 if (!memcmp(filetype, php_sig_gif, 3)) { in php_getimagetype()
1363 } else if (!memcmp(filetype, php_sig_jpg, 3)) { in php_getimagetype()
1365 } else if (!memcmp(filetype, php_sig_png, 3)) { in php_getimagetype()
1370 if (!memcmp(filetype, php_sig_png, 8)) { in php_getimagetype()
1376 } else if (!memcmp(filetype, php_sig_swf, 3)) { in php_getimagetype()
1378 } else if (!memcmp(filetype, php_sig_swc, 3)) { in php_getimagetype()
1380 } else if (!memcmp(filetype, php_sig_psd, 3)) { in php_getimagetype()
1391 if (!memcmp(filetype+8, php_sig_webp, 4)) { in php_getimagetype()
[all …]
H A Dcrypt_blowfish.c844 !memcmp(p, buf.s, 7 + 22) && in php_crypt_blowfish_rn()
845 !memcmp(p + (7 + 22), test_hash, 31 + 1 + 1 + 1)); in php_crypt_blowfish_rn()
854 !memcmp(ae, ye, sizeof(ae)) && in php_crypt_blowfish_rn()
855 !memcmp(ai, yi, sizeof(ai)); in php_crypt_blowfish_rn()
H A Dcrypt_sha256.c707 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main()
717 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main()
733 if (memcmp(expected, sum, 32) != 0) { in main()
/php-src/ext/dom/
H A Dserialize_common.h26 return name_length == tag_length && memcmp((const char *) node->name, tag, name_length + 1) == 0; in dom_local_name_compare_ex()
/php-src/ext/pdo_sqlite/tests/
H A Dgh13991.phpt2 Fix GH-13984: Buffer size is now checked before memcmp
/php-src/ext/sodium/
H A Dsodium_pwhash.c115 if (!memcmp(p, "$argon2i$", strlen("$argon2i$"))) { in php_sodium_argon2_get_info()
117 } else if (!memcmp(p, "$argon2id$", strlen("$argon2id$"))) { in php_sodium_argon2_get_info()
/php-src/ext/sqlite3/tests/
H A Dsqlite3_36_create_collation.phpt20 $defaultSort = $db->query('SELECT s FROM t ORDER BY s'); //memcmp() sort
H A Dsqlite3_trampoline_create_collation.phpt29 $defaultSort = $db->query('SELECT s FROM t ORDER BY s'); //memcmp() sort
/php-src/sapi/fpm/fpm/
H A Dfpm_stdio.c229 !memcmp(buf, &FPM_STDIO_CMD_FLUSH[cmd_pos], sizeof(FPM_STDIO_CMD_FLUSH) - cmd_pos)) {
246 if (!memcmp(buf + pos, FPM_STDIO_CMD_FLUSH, sizeof(FPM_STDIO_CMD_FLUSH))) {
252 } else if (!memcmp(buf + pos, FPM_STDIO_CMD_FLUSH, in_buf - pos)) {
/php-src/sapi/phpdbg/
H A Dphpdbg_set.c224 if (param->len == sizeof("opcode") - 1 && !memcmp(param->str, "opcode", sizeof("opcode"))) { in PHPDBG_SET()
226 } else if (param->len == sizeof("line") - 1 && !memcmp(param->str, "line", sizeof("line"))) { in PHPDBG_SET()
H A Dphpdbg_cmd.c269 (memcmp(l->str, r->str, l->len) == SUCCESS); in phpdbg_match_param()
284 return (memcmp( in phpdbg_match_param()
301 if (memcmp(l->method.class, r->method.class, lengths[0]) == SUCCESS) { in phpdbg_match_param()
306 return (memcmp( in phpdbg_match_param()
H A Dphpdbg_bp.c345 …ur) ? file[filelen - ZSTR_LEN(cur) - 1] : '?', filelen > ZSTR_LEN(cur) ? memcmp(file + filelen - Z… in phpdbg_resolve_pending_file_break_ex()
353 …(cur) - 1] == '/' || WIN32_PATH_CHECK)) || filelen == ZSTR_LEN(cur)) && !memcmp(file + filelen - Z… in phpdbg_resolve_pending_file_break_ex()
579 …if (PHPDBG_G(ops) != NULL && !memcmp(PHPDBG_G(ops)->filename, new_break->class_name, new_break->cl… in phpdbg_resolve_opline_break()
592 …cope == NULL && new_break->class_len == ZSTR_LEN(op_array->filename) && !memcmp(ZSTR_VAL(op_array-… in phpdbg_resolve_opline_break()
1043 if (len == param->len && memcmp(param->str, str, len) == SUCCESS) { in phpdbg_find_breakpoint_param()
1055 return (memcmp( in phpdbg_find_breakpoint_param()
1072 …if (lengths[0] == lengths[1] && memcmp(param->method.class, ops->scope->name, lengths[0]) == SUCCE… in phpdbg_find_breakpoint_param()
1076 …if (lengths[0] == lengths[1] && memcmp(param->method.name, ops->function_name, lengths[0]) == SUCC… in phpdbg_find_breakpoint_param()
/php-src/ext/opcache/jit/ir/
H A Dir_strtab.c126 && memcmp(p->str, str, len) == 0) { in ir_strtab_find()
145 && memcmp(p->str, str, len) == 0) { in ir_strtab_lookup()
194 && memcmp(p->str, str, len) == 0) { in ir_strtab_update()
/php-src/ext/phar/
H A Dutil.c200 if (path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) { in phar_mount_entry()
205 is_phar = (filename_len > 7 && !memcmp(filename, "phar://", 7)); in phar_mount_entry()
294 …&& !memcmp(ZSTR_VAL(fname) + length_phar_protocol, PHAR_G(last_phar_name), PHAR_G(last_phar_name_l… in phar_find_in_include_path()
1014 …if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_pha… in phar_get_archive()
1086 …if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))… in phar_get_archive()
1116 if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { in phar_get_archive()
1270 if (security && path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) { in phar_get_entry_info_dir()
1693 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
1733 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
1773 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature()
[all …]
/php-src/ext/fileinfo/libmagic/
H A Dis_tar.c119 memcmp(nulp - sizeof(gpkg_match) + 1, gpkg_match, in is_tar()
/php-src/ext/dba/libflatfile/
H A Dflatfile.c125 if (size == num && !memcmp(buf, key, size)) { in flatfile_delete()
173 if (!memcmp(buf, key, size)) { in flatfile_findkey()
/php-src/ext/dba/libcdb/
H A Dcdb.c55 if (memcmp(buf, key, n)) in cdb_match()
/php-src/main/streams/
H A Dmemory.c623 if (memcmp(path, "data:", 5)) { in php_stream_url_wrap_rfc2397()
661 …} else if (semi != path || mlen != sizeof(";base64")-1 || memcmp(path, ";base64", sizeof(";base64"… in php_stream_url_wrap_rfc2397()
673 if (mlen != sizeof("base64")-1 || memcmp(path, "base64", sizeof("base64")-1)) { in php_stream_url_wrap_rfc2397()
687 if (plen != sizeof("mediatype")-1 || memcmp(path, "mediatype", sizeof("mediatype")-1)) { in php_stream_url_wrap_rfc2397()
/php-src/ext/openssl/
H A Dopenssl_pwhash.c182 if (!memcmp(p, "$argon2i$", strlen("$argon2i$"))) { in php_openssl_argon2_extract()
184 } else if (!memcmp(p, "$argon2id$", strlen("$argon2id$"))) { in php_openssl_argon2_extract()
/php-src/ext/mysqlnd/
H A Dmysqlnd_vio.c280 if (!memcmp(scheme.s, "tcp://", sizeof("tcp://") - 1)) { in MYSQLND_METHOD()
303 if (scheme.l > (sizeof("pipe://") - 1) && !memcmp(scheme.s, "pipe://", sizeof("pipe://") - 1)) { in MYSQLND_METHOD()
305 } else if ((scheme.l > (sizeof("tcp://") - 1) && !memcmp(scheme.s, "tcp://", sizeof("tcp://") - 1)) in MYSQLND_METHOD()
307 (scheme.l > (sizeof("unix://") - 1) && !memcmp(scheme.s, "unix://", sizeof("unix://") - 1))) in MYSQLND_METHOD()
/php-src/ext/date/lib/
H A Dparse_tz.c155 if (memcmp(*tzf, "PHP", 3) == 0) { in read_preamble()
158 } else if (memcmp(*tzf, "TZif", 4) == 0) { in read_preamble()
625 if (memcmp(*tzf, "TZif2", 5) == 0) { in skip_64bit_preamble()
628 } else if (memcmp(*tzf, "TZif3", 5) == 0) { in skip_64bit_preamble()
631 } else if (memcmp(*tzf, "TZif4", 5) == 0) { in skip_64bit_preamble()
/php-src/ext/ffi/
H A Dffi.stub.php58 public static function memcmp($ptr1, $ptr2, int $size): int {} function in FFI

Completed in 62 milliseconds

1234