/php-src/TSRM/ |
H A D | TSRM.h | 53 # define TSRM_ALIGNED_SIZE(size) \ argument 54 (((size) + INT32_C(15)) & ~INT32_C(15)) 56 # define TSRM_ALIGNED_SIZE(size) \ argument 57 (((size) + INT64_C(15)) & ~INT64_C(15)) 91 TSRM_API ts_rsrc_id ts_allocate_id(ts_rsrc_id *rsrc_id, size_t size, ts_allocate_ctor ctor, ts_allo… 94 TSRM_API void tsrm_reserve(size_t size); 95 TSRM_API ts_rsrc_id ts_allocate_fast_id(ts_rsrc_id *rsrc_id, size_t *offset, size_t size, ts_alloca…
|
H A D | TSRM.c | 41 size_t size; member 300 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].size = size; in ts_allocate_id() 315 TSRM_API void tsrm_reserve(size_t size) in tsrm_reserve() argument 318 tsrm_reserved_size = TSRM_ALIGNED_SIZE(size); in tsrm_reserve() 333 size = TSRM_ALIGNED_SIZE(size); in ts_allocate_fast_id() 334 if (tsrm_reserved_size - tsrm_reserved_pos < size) { in ts_allocate_fast_id() 343 tsrm_reserved_pos += size; in ts_allocate_fast_id() 358 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].size = size; in ts_allocate_fast_id() 732 int size; in tsrm_error() local 736 size = vfprintf(tsrm_error_file, format, args); in tsrm_error() [all …]
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_shm.h | 6 void *fpm_shm_alloc(size_t size); 7 int fpm_shm_free(void *mem, size_t size);
|
H A D | fpm_str.h | 6 static inline char *str_purify_filename(char *dst, char *src, size_t size) /* {{{ */ in str_purify_filename() argument 11 end = dst + size - 1; in str_purify_filename()
|
/php-src/Zend/ |
H A D | zend_extensions.c | 354 size_t size; member 361 data->size += extension->op_array_persist_calc(data->op_array); in zend_extension_op_array_persist_calc_handler() 368 size_t size = extension->op_array_persist(data->op_array, data->mem); in zend_extension_op_array_persist_handler() local 369 if (size) { in zend_extension_op_array_persist_handler() 370 data->mem = (void*)((char*)data->mem + size); in zend_extension_op_array_persist_handler() 371 data->size += size; in zend_extension_op_array_persist_handler() 382 data.size = 0; in zend_extensions_op_array_persist_calc() 385 return data.size; in zend_extensions_op_array_persist_calc() 396 data.size = 0; in zend_extensions_op_array_persist() 399 return data.size; in zend_extensions_op_array_persist()
|
/php-src/ext/mbstring/tests/ |
H A D | mb_str_split_ru.phpt | 49 $size = 25000; 50 $long = str_repeat($string, $size); /* 25k x 12 chars = 3e5 chars */ 55 /* check array size */ 56 if($size !== $count) printf("Long string splitting error: actual array size: %d expected: %d\n", $c…
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | str.h | 25 #define lexbor_str_check_size_arg_m(str, size, mraw, plus_len, return_fail) \ argument 32 if ((str->length + (plus_len)) > (size)) { \ 57 lexbor_str_init(lexbor_str_t *str, lexbor_mraw_t *mraw, size_t size); 138 size_t size); 144 size_t size); 147 size_t size); 150 size_t size); 156 size_t size); 162 size_t size);
|
H A D | print.h | 29 lexbor_sprintf(lxb_char_t *dst, size_t size, const char *format, ...); 32 lexbor_vsprintf(lxb_char_t *dst, size_t size, const char *format, va_list va);
|
/php-src/ext/opcache/jit/ir/ |
H A D | ir_private.h | 257 size = IR_ALIGNED_SIZE(size, 8); in ir_arena_alloc() 484 uint32_t size; member 494 set->size = size; in ir_sparse_set_init() 496 set->data = (uint32_t*)ir_mem_malloc(sizeof(uint32_t) * 2 * size) + size; in ir_sparse_set_init() 499 memset(&IR_SPARSE_SET_SPARSE(set, size - 1), 0, size * sizeof(uint32_t)); in ir_sparse_set_init() 637 uint32_t size; member 647 a->size = size; in ir_array_init() 654 a->size = 0; in ir_array_free() 659 return a->size; in ir_array_size() 675 if (i >= a->size) { in ir_array_set() [all …]
|
/php-src/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_uuencode.c | 178 unsigned int size = *state >> 8; in mb_uuencode_to_wchar() local 196 size = UUDEC(c); in mb_uuencode_to_wchar() 211 if (size > 0) { in mb_uuencode_to_wchar() 213 size--; in mb_uuencode_to_wchar() 215 if (size > 0) { in mb_uuencode_to_wchar() 217 size--; in mb_uuencode_to_wchar() 219 if (size > 0) { in mb_uuencode_to_wchar() 221 size--; in mb_uuencode_to_wchar() 224 _state = size ? uudec_state_a : uudec_state_skip_newline; in mb_uuencode_to_wchar() 233 *state = (size << 8) | _state; in mb_uuencode_to_wchar()
|
/php-src/ext/spl/tests/ |
H A D | SplFixedArray_setSize_destruct.phpt | 15 echo "After reducing size:\n"; 29 After reducing size: 47 After reducing size:
|
/php-src/ext/dba/ |
H A D | dba_db2.c | 91 gkey.size = ZSTR_LEN(key); in DBA_FETCH_FUNC() 97 return zend_string_init(gval.data, gval.size, /* persistent */ false); in DBA_FETCH_FUNC() 107 gkey.size = ZSTR_LEN(key); in DBA_UPDATE_FUNC() 110 gval.size = ZSTR_LEN(val); in DBA_UPDATE_FUNC() 126 gkey.size = ZSTR_LEN(key); in DBA_EXISTS_FUNC() 140 gkey.size = ZSTR_LEN(key); in DBA_DELETE_FUNC() 175 return zend_string_init(gkey.data, gkey.size, /* persistent */ false);
|
/php-src/ext/standard/tests/file/ |
H A D | userstreams_006.phpt | 14 echo "size: ", strlen($data), "\n"; 37 size: 42 38 size: 28
|
H A D | file.inc | 122 $size = $file_size; 124 if ( $size > $chunk_size ) { 129 $chunk_size = $size; 136 $size -= $chunk_size; 137 } while ( $size > 0 ); 219 $size = size of the fill in terms of kilobyte, i.e size of the file. 237 $size = 1, 252 // check for proper size 253 if ( $size == 0 ) 257 $file_size = $size; [all …]
|
/php-src/ext/pcre/pcre2lib/sljit/ |
H A D | sljitNativeX86_64.c | 88 size &= 0xf; in emit_x86_instruction() 148 size++; in emit_x86_instruction() 295 sljit_uw size; in emit_vex_instruction() local 456 sljit_uw size; in sljit_emit_enter() local 487 INC_SIZE(size); in sljit_emit_enter() 497 INC_SIZE(size); in sljit_emit_enter() 659 sljit_uw size; in emit_stack_frame_release() local 1227 sljit_u32 size; in sljit_emit_fset() local 1242 INC_SIZE(size); in sljit_emit_fset() 1306 sljit_u32 size; in sljit_emit_fcopy() local [all …]
|
/php-src/ext/dom/lexbor/lexbor/html/ |
H A D | parser.h | 66 lxb_html_parse(lxb_html_parser_t *parser, const lxb_char_t *html, size_t size); 71 const lxb_char_t *html, size_t size); 77 const lxb_char_t *html, size_t size); 85 const lxb_char_t *html, size_t size); 98 const lxb_char_t *html, size_t size);
|
/php-src/ext/ffi/tests/ |
H A D | 031.phpt | 11 $size = FFI::sizeof(FFI::cdef()->new($type)); 12 if ($size !== $expected_size) { 13 echo "FAIL: sizeof($type) != $expected_size ($size)\n";
|
/php-src/ext/standard/tests/streams/ |
H A D | set_file_buffer.phpt | 20 echo "size: ", strlen($data), "\n"; 41 size: %d 42 size: 28
|
/php-src/ext/standard/tests/array/ |
H A D | array_map_variation7.phpt | 2 Test array_map() function : usage variations - arrays of different size 6 * Test array_map() by passing array having different size 14 echo "*** Testing array_map() : arrays with diff. size ***\n"; 31 *** Testing array_map() : arrays with diff. size ***
|
H A D | array_chunk_variation6.phpt | 28 $size = 2; 36 var_dump( array_chunk($input_array, $size) ); 37 var_dump( array_chunk($input_array, $size, true) ); 38 var_dump( array_chunk($input_array, $size, false) );
|
/php-src/ext/gd/libgd/ |
H A D | gd_io_file.c | 77 static int filePutbuf (gdIOCtx * ctx, const void *buf, int size) in filePutbuf() argument 82 return fwrite(buf, 1, size, fctx->f); in filePutbuf() 86 static int fileGetbuf (gdIOCtx * ctx, void *buf, int size) in fileGetbuf() argument 91 return fread(buf, 1, size, fctx->f); in fileGetbuf()
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_watch.h | 69 size_t size; member 123 void phpdbg_create_addr_watchpoint(void *addr, size_t size, phpdbg_watchpoint_t *watch); 142 static zend_always_inline size_t phpdbg_get_total_page_size(void *addr, size_t size) { in phpdbg_get_total_page_size() argument 143 …return (size_t) phpdbg_get_page_boundary((void *) ((size_t) addr + size - 1)) - (size_t) phpdbg_ge… in phpdbg_get_total_page_size()
|
H A D | phpdbg_sigsafe.c | 9 static void* zend_mm_mem_alloc(zend_mm_storage *storage, size_t size, size_t alignment) { in ZEND_EXTERN_MODULE_GLOBALS() 11 if (EXPECTED(size <= PHPDBG_SIGSAFE_MEM_SIZE && !PHPDBG_G(sigsafe_mem).allocated)) { in ZEND_EXTERN_MODULE_GLOBALS() 27 static void zend_mm_mem_free(zend_mm_storage *storage, void *ptr, size_t size) { in zend_mm_mem_free() argument
|
/php-src/ext/sockets/ |
H A D | sendrecvmsg.c | 101 entry.size = sizev; \ in init_ancillary_registry() 314 size_t _rem_size = ZEND_LONG_MAX - entry->size; in PHP_FUNCTION() 316 size_t size = entry->size + n * entry->var_el_size; in PHP_FUNCTION() local 317 size_t total_size = CMSG_SPACE(size); in PHP_FUNCTION() 320 || total_size < size /* align overflow */) { in PHP_FUNCTION() 326 RETURN_LONG((zend_long)CMSG_SPACE(entry->size + n * entry->var_el_size)); in PHP_FUNCTION() 385 socklen_t size; in php_do_getsockopt_ipv6_rfc3542() local 394 size = sizeof(struct in6_pktinfo); in php_do_getsockopt_ipv6_rfc3542() 402 buffer = ecalloc(1, size); in php_do_getsockopt_ipv6_rfc3542() 403 res = getsockopt(php_sock->bsd_socket, level, optname, buffer, &size); in php_do_getsockopt_ipv6_rfc3542()
|
/php-src/ext/zip/tests/ |
H A D | pecl12414.phpt | 17 $file_size=$finfo['size']; 22 echo "ZIP contents size: " . strlen($contents) . "\n"; 24 … echo "zip_readfile recorded data does not match unpacked size: " . $zipname . " : " . $filename;
|