/PHP-8.1/ext/sockets/ |
H A D | sockaddr_conv.c | 26 memcpy(&(sin6->sin6_addr.s6_addr), &(tmp.s6_addr), sizeof(struct in6_addr)); in php_set_inet6_addr() 52 …memcpy(&(sin6->sin6_addr.s6_addr), ((struct sockaddr_in6*)(addrinfo->ai_addr))->sin6_addr.s6_addr,… in php_set_inet6_addr() 112 memcpy(&(sin->sin_addr.s_addr), host_entry->h_addr_list[0], host_entry->h_length); 126 memcpy(ss, &t, sizeof t); 136 memcpy(ss, &t, sizeof t);
|
H A D | conversions.c | 378 memcpy(field, &ival, sizeof(ival)); in from_zval_write_int() 397 memcpy(field, &ival, sizeof(ival)); in from_zval_write_uint32() 416 memcpy(field, &ival, sizeof(ival)); in from_zval_write_net_uint16() 435 memcpy(field, &ival, sizeof(ival)); in from_zval_write_sa_family() 491 memcpy(&ival, data, sizeof(ival)); in to_zval_read_int() 498 memcpy(&ival, data, sizeof(ival)); in to_zval_read_net_uint16() 505 memcpy(&ival, data, sizeof(ival)); in to_zval_read_sa_family() 513 memcpy(&ival, data, sizeof(ival)); in to_zval_read_unsigned() 520 memcpy(&ival, data, sizeof(ival)); in to_zval_read_uint32() 529 memcpy(&ival, data, sizeof(ival)); in to_zval_read_pid_t() [all …]
|
/PHP-8.1/ext/standard/ |
H A D | http.c | 98 memcpy(p, key_prefix, key_prefix_len); in php_url_encode_hash_ex() 102 memcpy(p, ZSTR_VAL(ekey), ZSTR_LEN(ekey)); in php_url_encode_hash_ex() 107 memcpy(p, key_suffix, key_suffix_len); in php_url_encode_hash_ex() 124 memcpy(p, key_prefix, key_prefix_len); in php_url_encode_hash_ex() 129 memcpy(p, num_prefix, num_prefix_len); in php_url_encode_hash_ex() 133 memcpy(p, ekey, ekey_len); in php_url_encode_hash_ex() 138 memcpy(p, key_suffix, key_suffix_len); in php_url_encode_hash_ex()
|
H A D | crypt_sha256.c | 43 return (((char *)memcpy(dst, src, len)) + len); in __php_mempcpy() 228 memcpy(&ctx->buffer[bytes], fillbuf, pad); in sha256_finish_ctx() 254 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes() 261 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes() 279 sha256_process_block(memcpy(ctx->buffer, buffer, 64), 64, ctx); in sha256_process_bytes() 293 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes() 298 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes() 376 …key = copied_key = memcpy(tmp + __alignof__(uint32_t) - (uintptr_t)tmp % __alignof__(uint32_t), k… in php_sha256_crypt_r() 382 memcpy(tmp + __alignof__(uint32_t) - (uintptr_t)tmp % __alignof__ (uint32_t), salt, salt_len); in php_sha256_crypt_r() 450 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r() [all …]
|
H A D | var.c | 718 memcpy(res, "i:", 2); in php_var_serialize_long() 720 memcpy(res, s, l); in php_var_serialize_long() 731 memcpy(res, "s:", 2); in php_var_serialize_string() 733 memcpy(res, s, l); in php_var_serialize_string() 735 memcpy(res, ":\"", 2); in php_var_serialize_string() 737 memcpy(res, str, len); in php_var_serialize_string() 739 memcpy(res, "\";", 2); in php_var_serialize_string() 753 memcpy(res, "O:", 2); in php_var_serialize_class_name() 755 memcpy(res, s, l); in php_var_serialize_class_name() 757 memcpy(res, ":\"", 2); in php_var_serialize_class_name() [all …]
|
H A D | crypt_sha512.c | 255 memcpy(&ctx->buffer[bytes], fillbuf, pad); in sha512_finish_ctx() 281 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes() 289 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes() 309 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes() 326 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes() 331 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes() 411 memcpy(tmp + __alignof__(uint64_t) - (uintptr_t)tmp % __alignof__(uint64_t), key, key_len); in php_sha512_crypt_r() 416 …salt = copied_salt = memcpy(tmp + __alignof__(uint64_t) - (uintptr_t)tmp % __alignof__(uint64_t), … in php_sha512_crypt_r() 485 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r() 503 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
|
/PHP-8.1/main/ |
H A D | fopen_wrappers.c | 173 memcpy(path_tmp, buf, ret); 381 memcpy(user, path_info + 2, length); 407 memcpy(ZSTR_VAL(filename), PG(doc_root), length); 536 memcpy(trypath, ptr, end-ptr); 546 memcpy(trypath, ptr, len); 548 memcpy(trypath+len+1, filename, filename_length+1); 586 memcpy(trypath, exec_fname, exec_fname_length + 1); 670 memcpy(pathbuf, path, path_length); 780 memcpy(cwd, relative_to, relative_to_len+1U); 795 memcpy(real_path, filepath, copy_len); [all …]
|
/PHP-8.1/ext/ffi/tests/ |
H A D | gh7867.phpt | 10 FFI::memcpy($value, implode('', range('a', 'z')), 26); 15 FFI::memcpy($slice, $value, 4); 20 FFI::memcpy($slice, $value + 4, 4);
|
H A D | 009.phpt | 2 FFI 009: memcpy(), memcmp(), memset() and sizeof() 14 FFI::memcpy($b, $a, FFI::sizeof($a));
|
/PHP-8.1/ext/pcre/pcre2lib/ |
H A D | pcre2_serialize.c | 113 memcpy(bytes, memctl, sizeof(pcre2_memctl)); in pcre2_serialize_encode() 124 memcpy(dst_bytes, tables, TABLES_LENGTH); in pcre2_serialize_encode() 130 (void)memcpy(dst_bytes, (char *)re, re->blocksize); in pcre2_serialize_encode() 195 memcpy(tables, src_bytes, TABLES_LENGTH); in pcre2_serialize_decode() 208 memcpy(&blocksize, src_bytes + offsetof(pcre2_real_code, blocksize), in pcre2_serialize_decode() 230 memcpy(((uint8_t *)dst_re) + sizeof(pcre2_memctl), in pcre2_serialize_decode()
|
/PHP-8.1/ext/date/lib/ |
H A D | parse_tz.c | 107 memcpy(tz->location.country_code, *tzf, 2); in read_php_preamble() 170 memcpy(&buffer, *tzf, sizeof(buffer)); in read_32bit_header() 208 memcpy(buffer, *tzf, sizeof(int64_t) * tz->bit64.timecnt); in read_64bit_transitions() 223 memcpy(cbuffer, *tzf, sizeof(unsigned char) * tz->bit64.timecnt); in read_64bit_transitions() 277 memcpy(tz->timezone_abbr, *tzf, sizeof(char) * tz->bit64.charcnt); in read_64bit_types() 371 memcpy(tz->posix_string, begin, *tzf - begin); in read_posix_string() 399 memcpy(tz->timezone_abbr + old_length, abbr, strlen(abbr)); in add_abbr() 451 memcpy(&buffer, *tzf, sizeof(buffer)); in read_location() 460 memcpy(tz->location.comments, *tzf, comments_len); in read_location() 643 memcpy(&buffer, *tzf, sizeof(buffer)); in read_64bit_header() [all …]
|
/PHP-8.1/Zend/ |
H A D | zend_virtual_cwd.c | 275 memcpy(retval, state->cwd, *length); in virtual_getcwd_ex() 311 memcpy(buf, cwd, length+1); in virtual_getcwd() 621 memcpy(tmp, path, len+1); in tsrm_realpath_r() 867 memcpy(path, tmp, i-1); in tsrm_realpath_r() 903 memcpy(tmp, path, len+1); in tsrm_realpath_r() 924 memcpy(path, tmp, i-1); in tsrm_realpath_r() 972 memcpy(path+j, tmp_path, i+1); in tsrm_realpath_r() 977 memcpy(path+j, tmp+i, len-i+1); in tsrm_realpath_r() 986 memcpy(path+j, tmp+i, len-i+1); in tsrm_realpath_r() 1226 memcpy(temp, path, length); in virtual_chdir_file() [all …]
|
H A D | zend_vm_trace_handlers.h | 37 memcpy(buf, last, last_len); in zend_vm_trace() 39 memcpy(buf + last_len + 1, op, op_len + 1); in zend_vm_trace()
|
/PHP-8.1/sapi/phpdbg/ |
H A D | phpdbg_parser.y | 98 memcpy(&$$.file.name[0], $1.str, $1.len); 99 memcpy(&$$.file.name[$1.len], $2.str, $2.len); 108 memcpy(&$$.file.name[0], $1.str, $1.len); 109 memcpy(&$$.file.name[$1.len], $2.str, $2.len);
|
H A D | phpdbg_io.c | 30 memcpy(buf, PHPDBG_G(input_buffer), bytes); in ZEND_EXTERN_MODULE_GLOBALS() 53 memcpy(PHPDBG_G(input_buffer), buf + i + 1, PHPDBG_G(input_buflen)); in ZEND_EXTERN_MODULE_GLOBALS()
|
/PHP-8.1/ext/bcmath/libbcmath/src/ |
H A D | div.c | 56 memcpy (result, num, size); in _one_mult() 106 memcpy (qval->n_value, n1->n_value, in bc_divide() 127 memcpy (num1+1, n1->n_value, n1->n_len+n1->n_scale); in bc_divide() 131 memcpy (num2, n2->n_value, len2); in bc_divide()
|
/PHP-8.1/main/streams/ |
H A D | filter.c | 82 memcpy(bucket->buf, buf, buflen); in php_stream_bucket_new() 115 memcpy(retval, bucket, sizeof(*retval)); in php_stream_bucket_make_writeable() 118 memcpy(retval->buf, bucket->buf, retval->buflen); in php_stream_bucket_make_writeable() 135 memcpy((*left)->buf, in->buf, length); in php_stream_bucket_split() 142 memcpy((*right)->buf, in->buf + length, (*right)->buflen); in php_stream_bucket_split() 237 memcpy(wildname, filtername, n+1); in php_stream_filter_create() 372 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in php_stream_filter_append_ex() 454 memcpy(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_filter_flush() 463 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in _php_stream_filter_flush()
|
/PHP-8.1/ext/mysqlnd/ |
H A D | mysqlnd_portability.h | 158 #define floatget(V,M) memcpy((char*) &(V),(char*) (M),sizeof(float)) 252 #define float4get(V,M) memcpy((char*) &(V),(char*) (M),sizeof(float)) 289 #define float8get(V,M) memcpy((char*) &(V),(char*) (M), sizeof(double)) 290 #define float8store(T,V) memcpy((char*) (T),(char*) &(V), sizeof(double)) 292 #define float8get(V,M) memcpy((char*) &(V),(char*) (M),sizeof(double)) 293 #define float8store(T,V) memcpy((char*) (T),(char*) &(V),sizeof(double))
|
/PHP-8.1/win32/ |
H A D | registry.c | 55 memcpy(reg_key, *key_name, main_key_len); in OpenPhpRegistryKey() 56 memcpy(reg_key + main_key_len, sub_key, sub_key_len + 1); in OpenPhpRegistryKey() 148 memcpy(new_path, path, path_len); in LoadDirectory() 150 memcpy(new_path+path_len+1, name, name_len+1); in LoadDirectory() 154 memcpy(new_path, name, name_len+1); in LoadDirectory()
|
/PHP-8.1/ext/hash/ |
H A D | hash_murmur.c | 149 memcpy(©_context->h, &orig_context->h, sizeof orig_context->h); in PHP_MURMUR3CCopy() 150 memcpy(©_context->carry, &orig_context->carry, sizeof orig_context->carry); in PHP_MURMUR3CCopy() 221 memcpy(©_context->h, &orig_context->h, sizeof orig_context->h); in PHP_MURMUR3FCopy() 222 memcpy(©_context->carry, &orig_context->carry, sizeof orig_context->carry); in PHP_MURMUR3FCopy()
|
H A D | hash_tiger.c | 154 memcpy(&context->buffer[56], &context->passed, sizeof(uint64_t)); in TigerFinalize() 197 memcpy(&context->buffer[context->length], input, len); in PHP_TIGERUpdate() 204 memcpy(&context->buffer[context->length], input, i); in PHP_TIGERUpdate() 211 memcpy(context->buffer, &input[i], 64); in PHP_TIGERUpdate() 216 memcpy(context->buffer, &input[i], r); in PHP_TIGERUpdate()
|
H A D | hash_gost.c | 211 memcpy(u, context->state, sizeof(u)); in Gost() 212 memcpy(v, data, sizeof(v)); in Gost() 263 memcpy(&context->buffer[context->length], input, len); in PHP_GOSTUpdate() 270 memcpy(&context->buffer[context->length], input, i); in PHP_GOSTUpdate() 278 memcpy(context->buffer, input + i, r); in PHP_GOSTUpdate() 292 memcpy(l, context->count, sizeof(context->count)); in PHP_GOSTFinal() 294 memcpy(l, &context->state[8], sizeof(l)); in PHP_GOSTFinal()
|
H A D | hash_md.c | 223 memcpy((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); in PHP_MD4Update() 236 memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); in PHP_MD4Update() 325 memcpy(context->buffer + context->in_buffer, p, len); in PHP_MD2Update() 330 memcpy(context->buffer + context->in_buffer, p, 16 - context->in_buffer); in PHP_MD2Update() 344 memcpy(context->buffer, p, e - p); in PHP_MD2Update() 355 memcpy(output, context->state, 16); in PHP_MD2Final()
|
/PHP-8.1/ext/openssl/tests/ |
H A D | bug74651.phpt | 2 Bug #74651: negative-size-param (-1) in memcpy in zif_openssl_seal()
|
/PHP-8.1/ext/session/ |
H A D | mod_mm.c | 132 memcpy(sd->key, key, keylen + 1); in ps_sd_new() 289 memcpy(ps_mm_path, PS(save_path), save_path_len); in PHP_MINIT_FUNCTION() 294 memcpy(ps_mm_path + save_path_len, PS_MM_FILE, sizeof(PS_MM_FILE) - 1); in PHP_MINIT_FUNCTION() 296 memcpy(ps_mm_path + save_path_len, sapi_module.name, mod_name_len); in PHP_MINIT_FUNCTION() 298 memcpy(ps_mm_path + save_path_len, euid, euid_len); in PHP_MINIT_FUNCTION() 410 memcpy(sd->data, val->val, val->len); in PS_WRITE_FUNC()
|