Home
last modified time | relevance | path

Searched refs:memcmp (Results 76 – 97 of 97) sorted by path

1234

/php-src/ext/standard/
H A Dpassword.c247 if (!memcmp(p, "$argon2i$", sizeof("$argon2i$") - 1)) { in extract_argon2_parameters()
249 } else if (!memcmp(p, "$argon2id$", sizeof("$argon2id$") - 1)) { in extract_argon2_parameters()
H A Dstring.c1511 memcmp(basename_end - suffix_len, suffix, suffix_len) == 0) {
1926 RETURN_BOOL(memcmp(
3253 …} else if (needle_len > ZSTR_LEN(haystack) || memcmp(ZSTR_VAL(haystack), needle, ZSTR_LEN(haystack…
3340 if (memcmp(lc_haystack, ZSTR_VAL(lc_needle), ZSTR_LEN(lc_needle))) {
3412 } else if (needle_len > length || memcmp(haystack, needle, length)) {
H A Durl_scanner_ex.re900 if (!memcmp(end, PG(arg_separator).output, separator_len)) {
915 && !memcmp(start - separator_len, PG(arg_separator).output, separator_len)) {
/php-src/ext/tokenizer/
H A Dtokenizer.c407 if (Z_STRLEN_P(text_zv) == length && !memcmp(Z_STRVAL_P(text_zv), text, length)) { in extract_token_id_to_replace()
/php-src/ext/zip/
H A Dphp_zip.c1781 …} else if (opts.remove_path && !memcmp(Z_STRVAL_P(zval_file), opts.remove_path, opts.remove_path_l…
/php-src/main/
H A DSAPI.c1145 memcmp(var, "CONTENT_TYPE", sizeof("CONTENT_TYPE")-1) == 0) { in sapi_add_request_header()
1148 memcmp(var, "CONTENT_LENGTH", sizeof("CONTENT_LENGTH")-1) == 0) { in sapi_add_request_header()
H A Dfastcgi.c334 memcmp(p->var, var, var_len) == 0) { in fcgi_hash_set()
371 memcmp((*p)->var, var, var_len) == 0) { in fcgi_hash_del()
390 memcmp(p->var, var, var_len) == 0) { in fcgi_hash_get()
1325 && !memcmp(&client_sa.sa_inet.sin_addr, &allowed_clients[i].sa_inet.sin_addr, 4)) { in fcgi_is_allowed()
1334 && !memcmp(&client_sa.sa_inet6.sin6_addr, &allowed_clients[i].sa_inet6.sin6_addr, 12)) { in fcgi_is_allowed()
1340 … && !memcmp(((char *)&client_sa.sa_inet6.sin6_addr)+12, &allowed_clients[i].sa_inet.sin_addr, 4)) { in fcgi_is_allowed()
H A Doutput.c581 if (handler_new_len != handler_set_len || memcmp(handler_new, handler_set, handler_set_len)) { in php_output_handler_conflict()
H A Dphp_variables.c72 …ZEND_ASSERT(!(var_name_len == strlen("GLOBALS") && !memcmp(var_name, "GLOBALS", strlen("GLOBALS"))… in php_register_known_variable()
73 ZEND_ASSERT(!(var_name_len == strlen("this") && !memcmp(var_name, "this", strlen("this")))); in php_register_known_variable()
171 if (memcmp(var, "this", sizeof("this")-1) == 0) { in php_register_variable_ex()
187 !memcmp(var, "GLOBALS", sizeof("GLOBALS")-1)) { in php_register_variable_ex()
H A Drfc1867.c567 if (memcmp(needle, ptr, needlen < len ? needlen : len) == 0 && (partial || len >= needlen)) { in php_ap_memstr()
/php-src/main/streams/
H A Dmemory.c621 if (memcmp(path, "data:", 5)) { in php_stream_url_wrap_rfc2397()
659 …} else if (semi != path || mlen != sizeof(";base64")-1 || memcmp(path, ";base64", sizeof(";base64"… in php_stream_url_wrap_rfc2397()
671 if (mlen != sizeof("base64")-1 || memcmp(path, "base64", sizeof("base64")-1)) { in php_stream_url_wrap_rfc2397()
685 if (plen != sizeof("mediatype")-1 || memcmp(path, "mediatype", sizeof("mediatype")-1)) { in php_stream_url_wrap_rfc2397()
H A Dstreams.c1974 if ((*p == ':') && (n > 1) && (!strncmp("//", p+1, 2) || (n == 4 && !memcmp("data:", path, 5)))) {
/php-src/sapi/cgi/
H A Dcgi_main.c1640 memcmp(var, "CONTENT_TYPE", sizeof("CONTENT_TYPE")-1) == 0) {
1643 memcmp(var, "CONTENT_LENGTH", sizeof("CONTENT_LENGTH")-1) == 0) {
/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/litespeed/
H A Dlsapilib.c676 if ( memcmp( *pBegin, "\0\0\0\0", 4 ) != 0 ) in parseEnv()
1104 if ( memcmp( achMD5, pAuth + 16, 16 ) == 0 ) in lsapi_suexec_auth()
/php-src/sapi/phpdbg/
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()
H A Dphpdbg_cmd.c265 (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 Dphpdbg_help.c213 if (!help || memcmp(help, "", sizeof("")) == SUCCESS) { in phpdbg_do_help_cmd()
H A Dphpdbg_prompt.c223 if (memcmp(cmd, "<:", sizeof("<:")-1) == SUCCESS) { in phpdbg_line_init()
227 if (memcmp(cmd, ":>", sizeof(":>")-1) == SUCCESS) { in phpdbg_line_init()
407 if ((res_len != PHPDBG_G(exec_len)) || (memcmp(res, PHPDBG_G(exec), res_len) != SUCCESS)) { in PHPDBG_COMMAND()
476 if (!memcmp(sep, nl, seplen) && (*buf == '\n' || (*buf == '\r' && buf[1] == '\n'))) { in PHPDBG_COMMAND()
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_utils.c109 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()
H A Dphpdbg_watch.c141 …if (memcmp(&((Bucket *) oldPtr)->h, &((Bucket *) newPtr)->h, sizeof(Bucket) - sizeof(zval) /* key/… in phpdbg_check_watch_diff()
147 return memcmp(oldPtr, newPtr, sizeof(zend_value) + sizeof(uint32_t) /* value + typeinfo */) != 0; in phpdbg_check_watch_diff()
151 return memcmp(oldPtr, newPtr, sizeof(uint32_t) /* no zend_refcounted metadata info */) != 0; in phpdbg_check_watch_diff()
153 …return memcmp(oldPtr, newPtr, *(size_t *) oldPtr + XtOffsetOf(zend_string, val) - XtOffsetOf(zend_… in phpdbg_check_watch_diff()
1364 if (scope && len >= 5 && !memcmp("$this", input, 5)) {

Completed in 138 milliseconds

1234