/PHP-8.1/ext/ffi/tests/ |
H A D | 009.phpt | 2 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 D | 040.phpt | 47 var_dump(FFI::memcmp($x, $y[0], 4)); 49 var_dump(FFI::memcmp($x, $y[0], 4));
|
/PHP-8.1/ext/standard/ |
H A D | image.c | 706 if (!memcmp(&box_type, jp2c_box_id, 4)) in php_handle_jp2() 1137 if (memcmp(buf, sig, 3)) { in php_handle_webp() 1230 if (memcmp(box_type, "ftyp", 4)) { in php_is_image_avif() 1239 if (!memcmp(brand, "avif", 4) || !memcmp(brand, "avis", 4)) { in php_is_image_avif() 1256 if (!memcmp(brand, "avif", 4) || !memcmp(brand, "avis", 4)) { in php_is_image_avif() 1411 if (!memcmp(filetype, php_sig_gif, 3)) { in php_getimagetype() 1413 } else if (!memcmp(filetype, php_sig_jpg, 3)) { in php_getimagetype() 1415 } else if (!memcmp(filetype, php_sig_png, 3)) { in php_getimagetype() 1420 if (!memcmp(filetype, php_sig_png, 8)) { in php_getimagetype() 1441 if (!memcmp(filetype+8, php_sig_webp, 4)) { in php_getimagetype() [all …]
|
H A D | crypt_blowfish.c | 844 !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 D | crypt_sha256.c | 696 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main() 706 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main() 722 if (memcmp(expected, sum, 32) != 0) { in main()
|
H A D | crypt_sha512.c | 764 if (memcmp (tests[cnt].result, sum, 64) != 0) { in main() 774 if (memcmp (tests[cnt].result, sum, 64) != 0) { in main() 789 if (memcmp (expected, sum, 64) != 0) { in main()
|
/PHP-8.1/ext/sodium/ |
H A D | sodium_pwhash.c | 125 if (!memcmp(p, "$argon2i$", strlen("$argon2i$"))) { in php_sodium_argon2_get_info() 127 } else if (!memcmp(p, "$argon2id$", strlen("$argon2id$"))) { in php_sodium_argon2_get_info()
|
/PHP-8.1/Zend/Optimizer/ |
H A D | pass1.c | 154 …memcmp(Z_STRVAL(ZEND_OP2_LITERAL(opline)), "__COMPILER_HALT_OFFSET__", sizeof("__COMPILER_HALT_OFF… in zend_optimizer_pass1() 356 !memcmp(Z_STRVAL(ZEND_OP2_LITERAL(init_opline)), in zend_optimizer_pass1() 359 !memcmp(Z_STRVAL(ZEND_OP2_LITERAL(init_opline)), in zend_optimizer_pass1() 390 !memcmp(Z_STRVAL(ZEND_OP2_LITERAL(init_opline)), in zend_optimizer_pass1() 431 !memcmp(Z_STRVAL(ZEND_OP2_LITERAL(init_opline)), in zend_optimizer_pass1() 452 !memcmp(Z_STRVAL(ZEND_OP2_LITERAL(init_opline)), in zend_optimizer_pass1()
|
/PHP-8.1/ext/phar/ |
H A D | dirstream.c | 181 … && (manifest->nNumOfElements == 0)) || (dirlen >= sizeof(".phar")-1 && !memcmp(dir, ".phar", size… in phar_make_dirstream() 207 if (keylen >= sizeof(".phar")-1 && !memcmp(ZSTR_VAL(str_key), ".phar", sizeof(".phar")-1)) { in phar_make_dirstream() 229 if (0 != memcmp(ZSTR_VAL(str_key), dir, dirlen)) { in phar_make_dirstream() 374 if (ZSTR_LEN(str_key) > i_len && 0 == memcmp(ZSTR_VAL(str_key), internal_file, i_len)) { in phar_wrapper_open_dir() 604 memcmp(ZSTR_VAL(str_key), ZSTR_VAL(resource->path)+1, path_len) == 0 && in phar_wrapper_rmdir() 621 memcmp(ZSTR_VAL(str_key), ZSTR_VAL(resource->path)+1, path_len) == 0 && in phar_wrapper_rmdir()
|
H A D | util.c | 177 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() 1662 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature() 1702 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature() 1742 if (memcmp(digest, sig, sizeof(digest))) { in phar_verify_signature() [all …]
|
H A D | phar_object.c | 69 if (code > (size_t)entry_len && !memcmp(path_info, entry, entry_len)) { in phar_mung_server_vars() 93 if (code > basename_len && !memcmp(path_info, basename, basename_len)) { in phar_mung_server_vars() 106 if (code > basename_len && !memcmp(path_info, basename, basename_len)) { in phar_mung_server_vars() 461 if (path_len > 7 && !memcmp(path, "phar://", 7)) { in PHP_METHOD() 1305 if ((size_t)arch_len == fname_len && !memcmp(arch, fname, arch_len)) { in PHP_METHOD() 1594 if (str_key_len >= sizeof(".phar")-1 && !memcmp(str_key, ".phar", sizeof(".phar")-1)) { in phar_build() 3407 if (oldfile_len >= sizeof(".phar")-1 && !memcmp(oldfile, ".phar", sizeof(".phar")-1)) { in PHP_METHOD() 3414 if (newfile_len >= sizeof(".phar")-1 && !memcmp(newfile, ".phar", sizeof(".phar")-1)) { in PHP_METHOD() 3504 if (fname_len >= sizeof(".phar")-1 && !memcmp(fname, ".phar", sizeof(".phar")-1)) { in PHP_METHOD() 3547 if (fname_len >= sizeof(".phar")-1 && !memcmp(fname, ".phar", sizeof(".phar")-1)) { in PHP_METHOD() [all …]
|
/PHP-8.1/ext/sqlite3/tests/ |
H A D | sqlite3_36_create_collation.phpt | 20 $defaultSort = $db->query('SELECT s FROM t ORDER BY s'); //memcmp() sort
|
/PHP-8.1/sapi/fpm/fpm/ |
H A D | fpm_stdio.c | 230 !memcmp(buf, &FPM_STDIO_CMD_FLUSH[cmd_pos], sizeof(FPM_STDIO_CMD_FLUSH) - cmd_pos)) { 247 if (!memcmp(buf + pos, FPM_STDIO_CMD_FLUSH, sizeof(FPM_STDIO_CMD_FLUSH))) { 253 } else if (!memcmp(buf + pos, FPM_STDIO_CMD_FLUSH, in_buf - pos)) {
|
/PHP-8.1/sapi/phpdbg/ |
H A D | phpdbg_set.c | 224 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 D | phpdbg_cmd.c | 265 (memcmp(l->str, r->str, l->len) == SUCCESS); in phpdbg_match_param() 280 return (memcmp( in phpdbg_match_param() 297 if (memcmp(l->method.class, r->method.class, lengths[0]) == SUCCESS) { in phpdbg_match_param() 302 return (memcmp( in phpdbg_match_param()
|
H A D | phpdbg_bp.c | 345 …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()
|
H A D | phpdbg_utils.c | 109 return str[0] && str[1] && memcmp(str, "0x", 2) == 0; in phpdbg_is_addr() 161 if (memcmp(file, "[no active file]", sizeof("[no active file]")) == 0) { in phpdbg_current_file() 233 memcmp(name, color->name, name_length) == SUCCESS) { in phpdbg_get_color()
|
/PHP-8.1/ext/ffi/ |
H A D | ffi.stub.php | 56 public static function memcmp($ptr1, $ptr2, int $size): int {} function in FFI
|
H A D | ffi_arginfo.h | 138 ZEND_METHOD(FFI, memcmp); 174 ZEND_ME(FFI, memcmp, arginfo_class_FFI_memcmp, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
/PHP-8.1/ext/dba/libflatfile/ |
H A D | flatfile.c | 125 if (size == num && !memcmp(buf, key, size)) { in flatfile_delete() 173 if (!memcmp(buf, key, size)) { in flatfile_findkey()
|
/PHP-8.1/ext/dba/libcdb/ |
H A D | cdb.c | 55 if (memcmp(buf, key, n)) in cdb_match()
|
/PHP-8.1/main/streams/ |
H A D | memory.c | 616 if (memcmp(path, "data:", 5)) { in php_stream_url_wrap_rfc2397() 654 …} else if (semi != path || mlen != sizeof(";base64")-1 || memcmp(path, ";base64", sizeof(";base64"… in php_stream_url_wrap_rfc2397() 666 if (mlen != sizeof("base64")-1 || memcmp(path, "base64", sizeof("base64")-1)) { in php_stream_url_wrap_rfc2397() 680 if (plen != sizeof("mediatype")-1 || memcmp(path, "mediatype", sizeof("mediatype")-1)) { in php_stream_url_wrap_rfc2397()
|
/PHP-8.1/ext/mysqlnd/ |
H A D | mysqlnd_vio.c | 258 if (!memcmp(scheme.s, "tcp://", sizeof("tcp://") - 1)) { in MYSQLND_METHOD() 281 if (scheme.l > (sizeof("pipe://") - 1) && !memcmp(scheme.s, "pipe://", sizeof("pipe://") - 1)) { in MYSQLND_METHOD() 283 } else if ((scheme.l > (sizeof("tcp://") - 1) && !memcmp(scheme.s, "tcp://", sizeof("tcp://") - 1)) in MYSQLND_METHOD() 285 (scheme.l > (sizeof("unix://") - 1) && !memcmp(scheme.s, "unix://", sizeof("unix://") - 1))) in MYSQLND_METHOD()
|
/PHP-8.1/ext/date/lib/ |
H A D | parse_tz.c | 155 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-8.1/Zend/ |
H A D | zend_string.c | 139 if (!memcmp(ZSTR_VAL(p->key), str, size)) { in zend_interned_string_ht_lookup_ex() 389 return !memcmp(ZSTR_VAL(s1), ZSTR_VAL(s2), ZSTR_LEN(s1)); in I_REPLACE_SONAME_FNNAME_ZU()
|