Home
last modified time | relevance | path

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

1234

/PHP-5.4/ext/standard/
H A Dphp_var.h128 if (name_len == sizeof("GLOBALS") - 1 && !memcmp(name, "GLOBALS", sizeof("GLOBALS") - 1)) { in php_varname_check()
135 (name_len == sizeof("_GET") - 1 && !memcmp(name, "_GET", sizeof("_GET") - 1)) || in php_varname_check()
136 (name_len == sizeof("_POST") - 1 && !memcmp(name, "_POST", sizeof("_POST") - 1)) || in php_varname_check()
137 … (name_len == sizeof("_COOKIE") - 1 && !memcmp(name, "_COOKIE", sizeof("_COOKIE") - 1)) || in php_varname_check()
138 (name_len == sizeof("_ENV") - 1 && !memcmp(name, "_ENV", sizeof("_ENV") - 1)) || in php_varname_check()
139 … (name_len == sizeof("_SERVER") - 1 && !memcmp(name, "_SERVER", sizeof("_SERVER") - 1)) || in php_varname_check()
140 … (name_len == sizeof("_SESSION") - 1 && !memcmp(name, "_SESSION", sizeof("_SESSION") - 1)) || in php_varname_check()
141 (name_len == sizeof("_FILES") - 1 && !memcmp(name, "_FILES", sizeof("_FILES") - 1)) || in php_varname_check()
142 … (name_len == sizeof("_REQUEST") -1 && !memcmp(name, "_REQUEST", sizeof("_REQUEST") - 1)) in php_varname_check()
152 …(name_len == sizeof("HTTP_GET_VARS") - 1 && !memcmp(name, "HTTP_GET_VARS", sizeof("HTTP_GET_VARS")… in php_varname_check()
[all …]
H A Dimage.c705 if (!memcmp(&box_type, jp2c_box_id, 4)) in php_handle_jp2()
1234 if (!memcmp(filetype, php_sig_gif, 3)) { in php_getimagetype()
1236 } else if (!memcmp(filetype, php_sig_jpg, 3)) { in php_getimagetype()
1238 } else if (!memcmp(filetype, php_sig_png, 3)) { in php_getimagetype()
1243 if (!memcmp(filetype, php_sig_png, 8)) { in php_getimagetype()
1249 } else if (!memcmp(filetype, php_sig_swf, 3)) { in php_getimagetype()
1251 } else if (!memcmp(filetype, php_sig_swc, 3)) { in php_getimagetype()
1253 } else if (!memcmp(filetype, php_sig_psd, 3)) { in php_getimagetype()
1255 } else if (!memcmp(filetype, php_sig_bmp, 2)) { in php_getimagetype()
1266 if (!memcmp(filetype, php_sig_tif_ii, 4)) { in php_getimagetype()
[all …]
H A Dcrypt_blowfish.c862 !memcmp(p, buf.s, 7 + 22) && in php_crypt_blowfish_rn()
863 !memcmp(p + (7 + 22), test_hash, 31 + 1 + 1 + 1)); in php_crypt_blowfish_rn()
872 !memcmp(ae, ye, sizeof(ae)) && in php_crypt_blowfish_rn()
873 !memcmp(ai, yi, sizeof(ai)); in php_crypt_blowfish_rn()
H A Dcrypt_sha256.c715 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main()
725 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main()
741 if (memcmp(expected, sum, 32) != 0) { in main()
H A Dcrypt_sha512.c782 if (memcmp (tests[cnt].result, sum, 64) != 0) { in main()
792 if (memcmp (tests[cnt].result, sum, 64) != 0) { in main()
807 if (memcmp (expected, sum, 64) != 0) { in main()
/PHP-5.4/Zend/
H A Dzend_constants.c235 !memcmp(name, "__CLASS__", sizeof("__CLASS__")-1)) { in zend_get_special_constant()
267 !memcmp(name, "__COMPILER_HALT_OFFSET__", sizeof("__COMPILER_HALT_OFFSET__")-1)) { in zend_get_special_constant()
349 !memcmp(lcname, "self", sizeof("self")-1)) { in zend_get_constant_ex()
358 !memcmp(lcname, "parent", sizeof("parent")-1)) { in zend_get_constant_ex()
368 !memcmp(lcname, "static", sizeof("static")-1)) { in zend_get_constant_ex()
520 && !memcmp(name, "__COMPILER_HALT_OFFSET__", sizeof("__COMPILER_HALT_OFFSET__")-1)) in zend_register_constant()
525 && memcmp(name, "\0__COMPILER_HALT_OFFSET__", sizeof("\0__COMPILER_HALT_OFFSET__")) == 0) { in zend_register_constant()
H A Dzend_hash.c221 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in _zend_hash_add_or_update()
298 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in _zend_hash_quick_add_or_update()
506 || !memcmp(p->arKey, arKey, nKeyLength))) { /* String index */ in zend_hash_del_key_or_index()
927 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_find()
953 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_quick_find()
977 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_exists()
1002 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_quick_exists()
1249 memcmp(p->arKey, str_index, str_length) == 0)) { in zend_hash_update_current_key_ex()
1258 memcmp(q->arKey, str_index, str_length) == 0)) { in zend_hash_update_current_key_ex()
1528 result = memcmp(p1->arKey, p2->arKey, p1->nKeyLength); in zend_hash_compare()
H A Dzend_API.c1917 …} else if (name_len == sizeof(ZEND_GET_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_GET_FUNC_NAME, sizeo… in zend_check_magic_method_implementation()
1923 …} else if (name_len == sizeof(ZEND_SET_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_SET_FUNC_NAME, sizeo… in zend_check_magic_method_implementation()
1929 …} else if (name_len == sizeof(ZEND_UNSET_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_UNSET_FUNC_NAME, s… in zend_check_magic_method_implementation()
1941 …} else if (name_len == sizeof(ZEND_CALL_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_CALL_FUNC_NAME, siz… in zend_check_magic_method_implementation()
1948 !memcmp(lcname, ZEND_CALLSTATIC_FUNC_NAME, sizeof(ZEND_CALLSTATIC_FUNC_NAME)-1) in zend_check_magic_method_implementation()
1956 …!memcmp(lcname, ZEND_TOSTRING_FUNC_NAME, sizeof(ZEND_TOSTRING_FUNC_NAME)-1) && fptr->common.num_ar… in zend_check_magic_method_implementation()
2090 …if ((fname_len == class_name_len) && !ctor && !memcmp(lowercase_name, lc_class_name, class_name_le… in zend_register_functions()
2619 !memcmp(lcname, "self", sizeof("self") - 1)) { in zend_is_callable_check_class()
2631 !memcmp(lcname, "parent", sizeof("parent") - 1)) { in zend_is_callable_check_class()
2646 !memcmp(lcname, "static", sizeof("static") - 1)) { in zend_is_callable_check_class()
[all …]
H A Dzend_language_scanner.l335 if (!memcmp(LANG_SCNG(script_org), BOM_UTF32_BE, sizeof(BOM_UTF32_BE)-1)) { in zend_multibyte_detect_unicode()
338 } else if (!memcmp(LANG_SCNG(script_org), BOM_UTF32_LE, sizeof(BOM_UTF32_LE)-1)) { in zend_multibyte_detect_unicode()
341 } else if (!memcmp(LANG_SCNG(script_org), BOM_UTF16_BE, sizeof(BOM_UTF16_BE)-1)) { in zend_multibyte_detect_unicode()
344 } else if (!memcmp(LANG_SCNG(script_org), BOM_UTF16_LE, sizeof(BOM_UTF16_LE)-1)) { in zend_multibyte_detect_unicode()
347 } else if (!memcmp(LANG_SCNG(script_org), BOM_UTF8, sizeof(BOM_UTF8)-1)) { in zend_multibyte_detect_unicode()
2142 if (CG(heredoc_len) < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, s, CG(heredoc_len))) {
2306 …if (IS_LABEL_START(*YYCURSOR) && CG(heredoc_len) < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, CG(here…
2378 …if (IS_LABEL_START(*YYCURSOR) && CG(heredoc_len) < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, CG(here…
H A Dzend_compile.c301 memcmp(op_array->vars[i].name, name, name_len) == 0)) { in lookup_cv()
3677 if (!memcmp(mname, lowercase_name, mname_len)) { in zend_add_magic_methods()
4818 memcmp(tmp, lcname, Z_STRLEN(class_name->u.constant))) { in zend_do_begin_class_declaration()
6651 !memcmp(class_name, "self", sizeof("self")-1)) { in zend_get_class_fetch_type()
6654 !memcmp(class_name, "parent", sizeof("parent")-1)) { in zend_get_class_fetch_type()
6657 !memcmp(class_name, "static", sizeof("static")-1)) { in zend_get_class_fetch_type()
6744 !memcmp(lcname, "self", sizeof("self")-1)) || in zend_do_begin_namespace()
6814 !memcmp(lcname, "self", sizeof("self")-1)) || in zend_do_use()
6816 !memcmp(lcname, "parent", sizeof("parent")-1))) { in zend_do_use()
6831 memcmp(tmp2, c_ns_name, Z_STRLEN_P(ns))) { in zend_do_use()
[all …]
H A Dzend_string.c98 if (!memcmp(p->arKey, arKey, nKeyLength)) { in zend_new_interned_string_int()
/PHP-5.4/ext/zip/lib/
H A Dzip_open.c185 if (memcmp(eocd, EOCD_MAGIC, 4) != 0) { in _zip_readcdir()
190 if (memcmp(eocd+4, "\0\0\0\0", 4) != 0) { in _zip_readcdir()
431 && memcmp(h1->extrafield, h2->extrafield, in _zip_headercomp()
446 && memcmp(h1->comment, h2->comment, h1->comment_len))) in _zip_headercomp()
603 if (memcmp(p+1, little+1, littlelen-1)==0) in _zip_memmem()
/PHP-5.4/ext/phar/
H A Ddirstream.c200 … && (manifest->nNumOfElements == 0)) || (dirlen >= sizeof(".phar")-1 && !memcmp(dir, ".phar", size… in phar_make_dirstream()
228 if (keylen >= sizeof(".phar")-1 && !memcmp(str_key, ".phar", sizeof(".phar")-1)) { in phar_make_dirstream()
252 if (0 != memcmp(str_key, dir, dirlen)) { in phar_make_dirstream()
406 if (keylen > (uint)i_len && 0 == memcmp(str_key, internal_file, i_len)) { in phar_wrapper_open_dir()
642 memcmp(str_key, resource->path+1, path_len) == 0 && in phar_wrapper_rmdir()
663 memcmp(str_key, resource->path+1, path_len) == 0 && in phar_wrapper_rmdir()
H A Dutil.c185 if (path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) { in phar_mount_entry()
190 is_phar = (filename_len > 7 && !memcmp(filename, "phar://", 7)); in phar_mount_entry()
277 …if (PHAR_G(last_phar) && !memcmp(fname, "phar://", 7) && fname_len - 7 >= PHAR_G(last_phar_name_le… in phar_find_in_include_path()
539 …if (n < exec_fname_length - 3 && (*p == ':') && (n > 1) && (!strncmp("//", p+1, 2) || !memcmp("dat… in phar_find_in_include_path()
1300 …if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))… in phar_get_archive()
1330 if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { in phar_get_archive()
1485 if (security && path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) { in phar_get_entry_info_dir()
1945 if (memcmp(digest, sig, sizeof(digest))) {
1978 if (memcmp(digest, sig, sizeof(digest))) {
2019 if (memcmp(digest, sig, sizeof(digest))) {
[all …]
H A Dphar_object.c80 if (Z_STRLEN_PP(stuff) > entry_len && !memcmp(Z_STRVAL_PP(stuff), entry, entry_len)) { in phar_mung_server_vars()
496 if (path_len > 7 && !memcmp(path, "phar://", 7)) { in PHP_METHOD()
1369 if (arch_len == fname_len && !memcmp(arch, fname, arch_len)) {
1723 if (str_key_len >= sizeof(".phar")-1 && !memcmp(str_key, ".phar", sizeof(".phar")-1)) {
3532 if (oldfile_len >= sizeof(".phar")-1 && !memcmp(oldfile, ".phar", sizeof(".phar")-1)) {
3539 if (newfile_len >= sizeof(".phar")-1 && !memcmp(newfile, ".phar", sizeof(".phar")-1)) {
3644 if (fname_len >= sizeof(".phar")-1 && !memcmp(fname, ".phar", sizeof(".phar")-1)) {
3687 if (fname_len >= sizeof(".phar")-1 && !memcmp(fname, ".phar", sizeof(".phar")-1)) {
3715 if (filename_len >= sizeof(".phar")-1 && !memcmp(filename, ".phar", sizeof(".phar")-1)) {
3832 if (fname_len >= sizeof(".phar")-1 && !memcmp(fname, ".phar", sizeof(".phar")-1)) {
[all …]
H A Dtar.c180 …if (entry->filename_len == sizeof(".phar/.metadata.bin")-1 && !memcmp(entry->filename, ".phar/.met… in phar_tar_process_metadata()
223 old = (memcmp(hdr->magic, "ustar", sizeof("ustar")-1) != 0); in phar_parse_tarfile()
490 …if (entry.filename_len >= sizeof(".phar/.metadata")-1 && !memcmp(entry.filename, ".phar/.metadata"… in phar_parse_tarfile()
871 …if (entry->filename_len >= sizeof(".phar/.metadata") && !memcmp(entry->filename, ".phar/.metadata"… in phar_tar_setupmetadata()
872 …if (entry->filename_len == sizeof(".phar/.metadata.bin")-1 && !memcmp(entry->filename, ".phar/.met… in phar_tar_setupmetadata()
/PHP-5.4/ext/sqlite3/tests/
H A Dsqlite3_36_create_collation.phpt20 $defaultSort = $db->query('SELECT s FROM t ORDER BY s'); //memcmp() sort
/PHP-5.4/ext/mbstring/ucgendat/
H A Ducgendat.c244 if (props[i].len == len && memcmp(props[i].name, name, len) == 0) in add_range()
335 if ((len == 2 && memcmp(name, "BN", 2) == 0) || in ordered_range_insert()
337 (memcmp(name, "NSM", 3) == 0 || memcmp(name, "PDF", 3) == 0 || in ordered_range_insert()
338 memcmp(name, "LRE", 3) == 0 || memcmp(name, "LRO", 3) == 0 || in ordered_range_insert()
339 memcmp(name, "RLE", 3) == 0 || memcmp(name, "RLO", 3) == 0))) { in ordered_range_insert()
349 if (props[i].len == len && memcmp(props[i].name, name, len) == 0) in ordered_range_insert()
/PHP-5.4/ext/dba/libflatfile/
H A Dflatfile.c133 if (size == num && !memcmp(buf, key, size)) { in flatfile_delete()
187 if (!memcmp(buf, key, size)) { in flatfile_findkey()
/PHP-5.4/ext/dba/libcdb/
H A Dcdb.c57 if (memcmp(buf, key, n)) in cdb_match()
/PHP-5.4/ext/ereg/regex/
H A Dregexec.c76 #define EQ(a, b) (memcmp(a, b, m->g->nstates) == 0)
/PHP-5.4/main/streams/
H A Dmemory.c611 if (memcmp(path, "data:", 5)) { in php_stream_url_wrap_rfc2397()
650 …} else if (semi != path || mlen != sizeof(";base64")-1 || memcmp(path, ";base64", sizeof(";base64"… in php_stream_url_wrap_rfc2397()
662 if (mlen != sizeof("base64")-1 || memcmp(path, "base64", sizeof("base64")-1)) { in php_stream_url_wrap_rfc2397()
/PHP-5.4/ext/gd/libgd/
H A Dwebpimg.c262 if (*data_size_ptr >= kHeaderSize && !memcmp(*data_ptr, "RIFF", 4)) { in SkipRiffHeader()
263 if (memcmp(*data_ptr + 8, "WEBP", 4)) { in SkipRiffHeader()
267 if (memcmp(*data_ptr + 12, "VP8 ", 4)) { in SkipRiffHeader()
H A Dgd_gif_in.c158 if (memcmp((char *)buf+3, "87a", 3) == 0) { in gdImageCreateFromGifCtx()
160 } else if (memcmp((char *)buf+3, "89a", 3) == 0) { in gdImageCreateFromGifCtx()
/PHP-5.4/ext/exif/
H A Dexif.c2626 if (!memcmp(szValuePtr, "UNICODE\0", 8)) { in exif_process_user_comment()
2633 if (!memcmp(szValuePtr, "\xFE\xFF", 2)) { in exif_process_user_comment()
2637 } else if (!memcmp(szValuePtr, "\xFF\xFE", 2)) { in exif_process_user_comment()
2658 } else if (!memcmp(szValuePtr, "ASCII\0\0\0", 8)) { in exif_process_user_comment()
2662 } else if (!memcmp(szValuePtr, "JIS\0\0\0\0\0", 8)) { in exif_process_user_comment()
3199 if (memcmp(CharBuf, "II", 2) == 0) { in exif_process_TIFF_in_JPEG()
3201 } else if (memcmp(CharBuf, "MM", 2) == 0) { in exif_process_TIFF_in_JPEG()
3243 if (length <= 8 || memcmp(CharBuf+2, ExifHeader, 6)) { in exif_process_APP1()
3454 if (memcmp(data, "\xFF\xD8\xFF", 3)) { in exif_scan_thumbnail()
3783 if (!memcmp(file_header, "II\x2A\x00", 4)) { in exif_scan_FILE_header()
[all …]

Completed in 148 milliseconds

1234