Home
last modified time | relevance | path

Searched refs:size (Results 51 – 75 of 752) sorted by relevance

12345678910>>...31

/php-src/ext/spl/tests/
H A Dbug81992b.phpt14 echo "Destroyed, size is now still ", $this->obj->getSize(), "\n";
38 echo "--- Smaller size test ---\n";
40 echo "--- Equal size test ---\n";
42 echo "--- Larger size test ---\n";
46 --- Smaller size test ---
48 Destroyed, size is now still 2
53 --- Equal size test ---
55 Destroyed, size is now still 2
60 --- Larger size test ---
62 Destroyed, size is now still 2
/php-src/ext/pcre/pcre2lib/sljit/allocator_src/
H A DsljitExecAllocatorFreeBSD.c46 static SLJIT_INLINE void* alloc_chunk(sljit_uw size) in alloc_chunk() argument
67 retval = mmap(NULL, size, prot, flags, fd, 0); in alloc_chunk()
76 if (mprotect(retval, size, PROT_READ | PROT_WRITE | PROT_EXEC) < 0) { in alloc_chunk()
77 munmap(retval, size); in alloc_chunk()
84 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() argument
86 munmap(chunk, size); in free_chunk()
H A DsljitExecAllocatorWindows.c29 static SLJIT_INLINE void* alloc_chunk(sljit_uw size) in alloc_chunk() argument
31 return VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); in alloc_chunk()
34 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() argument
36 SLJIT_UNUSED_ARG(size); in free_chunk()
H A DsljitProtExecAllocatorPosix.c131 static SLJIT_INLINE struct sljit_chunk_header* alloc_chunk(sljit_uw size) in alloc_chunk() argument
140 if (ftruncate(fd, (off_t)size)) { in alloc_chunk()
145 retval = (struct sljit_chunk_header *)mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in alloc_chunk()
152 retval->executable = mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_SHARED, fd, 0); in alloc_chunk()
155 munmap((void *)retval, size); in alloc_chunk()
164 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() argument
168 munmap(header->executable, size); in free_chunk()
169 munmap((void *)header, size); in free_chunk()
H A DsljitExecAllocatorPosix.c30 static SLJIT_INLINE void* alloc_chunk(sljit_uw size) in alloc_chunk() argument
50 retval = mmap(NULL, size, prot, flags, fd, 0); in alloc_chunk()
57 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() argument
59 munmap(chunk, size); in free_chunk()
/php-src/ext/standard/tests/file/
H A Dftruncate_variation5-win32.phpt2 Test ftruncate() function : usage variations - truncate file to bigger size
49 /* try to truncate it to size bigger then current */
58 clearstatcache(); // clear previous size value in cache
59 var_dump( filesize($filename) ); // new file size = actual size, no change
73 -- Testing ftruncate(): try truncating file to size, bigger than existing --
81 -- Testing ftruncate(): try truncating file to size, bigger than existing --
89 -- Testing ftruncate(): try truncating file to size, bigger than existing --
97 -- Testing ftruncate(): try truncating file to size, bigger than existing --
105 -- Testing ftruncate(): try truncating file to size, bigger than existing --
113 -- Testing ftruncate(): try truncating file to size, bigger than existing --
[all …]
H A Dftruncate_variation5.phpt2 Test ftruncate() function : usage variations - truncate file to bigger size
49 /* try to truncate it to size bigger then current */
58 clearstatcache(); // clear previous size value in cache
59 var_dump( filesize($filename) ); // new file size = actual size, no change
73 -- Testing ftruncate(): try truncating file to size, bigger than existing --
81 -- Testing ftruncate(): try truncating file to size, bigger than existing --
89 -- Testing ftruncate(): try truncating file to size, bigger than existing --
97 -- Testing ftruncate(): try truncating file to size, bigger than existing --
105 -- Testing ftruncate(): try truncating file to size, bigger than existing --
113 -- Testing ftruncate(): try truncating file to size, bigger than existing --
[all …]
H A Dftruncate_variation3-win32.phpt2 Test ftruncate() function : usage variations - truncate file to half size
49 /* truncate it to half of its current size */
57 clearstatcache(); // clear previous size value in cache
58 var_dump( filesize($filename) ); // new file size = $new_size
71 -- Testing ftruncate(): truncate file to half of its current size --
79 -- Testing ftruncate(): truncate file to half of its current size --
87 -- Testing ftruncate(): truncate file to half of its current size --
95 -- Testing ftruncate(): truncate file to half of its current size --
103 -- Testing ftruncate(): truncate file to half of its current size --
111 -- Testing ftruncate(): truncate file to half of its current size --
[all …]
H A Dftruncate_variation3.phpt2 Test ftruncate() function : usage variations - truncate file to half size
49 /* truncate it to half of its current size */
57 clearstatcache(); // clear previous size value in cache
58 var_dump( filesize($filename) ); // new file size = $new_size
71 -- Testing ftruncate(): truncate file to half of its current size --
79 -- Testing ftruncate(): truncate file to half of its current size --
87 -- Testing ftruncate(): truncate file to half of its current size --
95 -- Testing ftruncate(): truncate file to half of its current size --
103 -- Testing ftruncate(): truncate file to half of its current size --
111 -- Testing ftruncate(): truncate file to half of its current size --
[all …]
H A Duserstreams_005.phpt40 test("stream_truncate size 0", $fd, 0);
41 test("stream_truncate size 10", $fd, 10);
43 test("stream_truncate negative size", $fd, -1);
57 ------ stream_truncate size 0: -------
60 ------ stream_truncate size 10: -------
63 ------ stream_truncate negative size: -------
64 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
/php-src/ext/opcache/jit/ir/
H A Dir_perf.c58 #define ALIGN8(size) (((size) + 7) & ~7) argument
59 #define PADDING8(size) (ALIGN8(size) - (size)) argument
64 uint32_t size; member
74 uint32_t size; member
172 jit_hdr.size = sizeof(jit_hdr); in ir_perf_jitdump_open()
191 rec.size = sizeof(rec); in ir_perf_jitdump_close()
234 rec.hdr.size = sizeof(rec) + len + 1 + size; in ir_perf_jitdump_register()
240 rec.code_size = (uint64_t)size; in ir_perf_jitdump_register()
245 || write(jitdump_fd, start, size) < 0) { in ir_perf_jitdump_register()
252 void ir_perf_map_register(const char *name, const void *start, size_t size) in ir_perf_map_register() argument
[all …]
/php-src/ext/shmop/
H A Dshmop.c67 zend_long size; member
136 zend_long key, mode, size; in PHP_FUNCTION() local
163 shmop->size = size; in PHP_FUNCTION()
167 shmop->size = size; in PHP_FUNCTION()
180 if (shmop->shmflg & IPC_CREAT && shmop->size < 1) { in PHP_FUNCTION()
208 shmop->size = shm.shm_segsz; in PHP_FUNCTION()
233 if (start < 0 || start > shmop->size) { in PHP_FUNCTION()
244 bytes = count ? count : shmop->size - start; in PHP_FUNCTION()
275 RETURN_LONG(shmop->size); in PHP_FUNCTION()
299 if (offset < 0 || offset > shmop->size) { in PHP_FUNCTION()
[all …]
/php-src/ext/random/
H A Dphp_random_csprng.h23 PHPAPI zend_result php_random_bytes(void *bytes, size_t size, bool should_throw);
26 static inline zend_result php_random_bytes_throw(void *bytes, size_t size) in php_random_bytes_throw() argument
28 return php_random_bytes(bytes, size, true); in php_random_bytes_throw()
31 static inline zend_result php_random_bytes_silent(void *bytes, size_t size) in php_random_bytes_silent() argument
33 return php_random_bytes(bytes, size, false); in php_random_bytes_silent()
H A Dcsprng.c64 PHPAPI zend_result php_random_bytes(void *bytes, size_t size, bool should_throw) in php_random_bytes() argument
68 if (php_win32_get_random_bytes(bytes, size) == FAILURE) { in php_random_bytes()
81 if (CCRandomGenerateBytes(bytes, size) != kCCSuccess) { in php_random_bytes()
98 arc4random_buf(bytes, size); in php_random_bytes()
107 while (read_bytes < size) { in php_random_bytes()
116 size_t amount_to_read = size - read_bytes; in php_random_bytes()
149 if (read_bytes < size) { in php_random_bytes()
190 while (read_bytes < size) { in php_random_bytes()
192 ssize_t n = read(fd, bytes + read_bytes, size - read_bytes); in php_random_bytes()
/php-src/ext/gd/libgd/
H A Dgdhelpers.h15 #define gdCalloc(nmemb, size) ecalloc(nmemb, size) argument
16 #define gdMalloc(size) emalloc(size) argument
17 #define gdRealloc(ptr, size) erealloc(ptr, size) argument
H A Dgd_webp.c27 gdImagePtr gdImageCreateFromWebpPtr (int size, void *data) in gdImageCreateFromWebpPtr() argument
30 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromWebpPtr()
43 size_t size = 0, n; in gdImageCreateFromWebpCtx() local
51 temp = gdRealloc(filedata, size+GD_WEBP_ALLOC_STEP); in gdImageCreateFromWebpCtx()
54 read = temp + size; in gdImageCreateFromWebpCtx()
65 size += n; in gdImageCreateFromWebpCtx()
69 if (WebPGetInfo(filedata,size, &width, &height) == 0) { in gdImageCreateFromWebpCtx()
80 argb = WebPDecodeARGB(filedata, size, &width, &height); in gdImageCreateFromWebpCtx()
186 void * gdImageWebpPtr (gdImagePtr im, int *size) in gdImageWebpPtr() argument
191 rv = gdDPExtractData(out, size); in gdImageWebpPtr()
[all …]
/php-src/ext/dom/lexbor/lexbor/html/tree/insertion_mode/
H A Dinitial.c292 size_t size, i; in lxb_html_tree_insertion_mode_initial_doctype_ckeck_public() local
296 size = sizeof(lxb_html_tree_insertion_mode_initial_doctype_public_is) in lxb_html_tree_insertion_mode_initial_doctype_ckeck_public()
299 for (i = 0; i < size; i++) { in lxb_html_tree_insertion_mode_initial_doctype_ckeck_public()
314 for (i = 0; i < size; i++) { in lxb_html_tree_insertion_mode_initial_doctype_ckeck_public()
332 size_t size; in lxb_html_tree_insertion_mode_initial_doctype_ckeck_system() local
336 size = sizeof(lxb_html_tree_insertion_mode_initial_doctype_system_is) in lxb_html_tree_insertion_mode_initial_doctype_ckeck_system()
339 for (size_t i = 0; i < size; i++) { in lxb_html_tree_insertion_mode_initial_doctype_ckeck_system()
357 size_t size; in lxb_html_tree_insertion_mode_initial_doctype_ckeck_pubsys() local
364 for (size_t i = 0; i < size; i++) { in lxb_html_tree_insertion_mode_initial_doctype_ckeck_pubsys()
383 size_t size; in lxb_html_tree_insertion_mode_initial_doctype_check_limq() local
[all …]
/php-src/ext/dom/lexbor/lexbor/core/
H A Darray.c17 lexbor_array_init(lexbor_array_t *array, size_t size) in lexbor_array_init() argument
23 if (size == 0) { in lexbor_array_init()
28 array->size = size; in lexbor_array_init()
30 array->list = lexbor_malloc(sizeof(void *) * size); in lexbor_array_init()
54 array->size = 0; in lexbor_array_destroy()
81 array->size = new_size; in lexbor_array_expand()
89 if (array->length >= array->size) { in lexbor_array_push()
118 if (idx >= array->size) { in lexbor_array_insert()
132 if (array->length >= array->size) { in lexbor_array_insert()
153 if (idx >= array->size) { in lexbor_array_set()
H A Darray_obj.c18 size_t size, size_t struct_size) in lexbor_array_obj_init() argument
24 if (size == 0 || struct_size == 0) { in lexbor_array_obj_init()
29 array->size = size; in lexbor_array_obj_init()
33 * (array->size * struct_size)); in lexbor_array_obj_init()
57 array->size = 0; in lexbor_array_obj_destroy()
87 array->size = new_size; in lexbor_array_obj_expand()
97 if (array->length >= array->size) in lexbor_array_obj_push()
117 if (array->length >= array->size) { in lexbor_array_obj_push_wo_cls()
134 if ((array->length + count) > array->size) { in lexbor_array_obj_push_n()
/php-src/ext/intl/
H A Dintl_common.h31 # define eumalloc(size) (UChar*)safe_emalloc(size, sizeof(UChar), 0) argument
35 # define eurealloc(ptr, size) (UChar*)erealloc((ptr), size * sizeof(UChar)) argument
/php-src/ext/opcache/
H A Dzend_shared_alloc.c142 memcpy(shared_segments_to_p, shared_segments_from_p, size); in copy_shared_segments()
367 void *zend_shared_alloc(size_t size) in zend_shared_alloc() argument
372 size_t block_size = ZEND_ALIGNED_SIZE(size); in zend_shared_alloc()
397 int zend_shared_memdup_size(void *source, size_t size) in zend_shared_memdup_size() argument
408 return ZEND_ALIGNED_SIZE(size); in zend_shared_memdup_size()
426 memcpy(retval, source, size); in _zend_shared_memdup()
442 return _zend_shared_memdup(source, size, true, true, true); in zend_shared_memdup_get_put_free()
450 void *zend_shared_memdup_free(void *source, size_t size) in zend_shared_memdup_free() argument
455 void *zend_shared_memdup_get_put(void *source, size_t size) in zend_shared_memdup_get_put() argument
460 void *zend_shared_memdup_put(void *source, size_t size) in zend_shared_memdup_put() argument
[all …]
/php-src/Zend/Optimizer/
H A Descape_analysis.c40 size[i] = 1; in union_find_init()
65 if (size[r1] < size[r2]) { in union_find_unite()
67 size[r2] += size[r1]; in union_find_unite()
70 size[r1] += size[r2]; in union_find_unite()
82 int *size; in zend_build_equi_escape_sets() local
85 size = do_alloca(sizeof(int) * ssa_vars_count, use_heap); in zend_build_equi_escape_sets()
86 if (!size) { in zend_build_equi_escape_sets()
89 union_find_init(parent, size, ssa_vars_count); in zend_build_equi_escape_sets()
95 union_find_unite(parent, size, i, p->sources[0]); in zend_build_equi_escape_sets()
98 union_find_unite(parent, size, i, p->sources[j]); in zend_build_equi_escape_sets()
[all …]
/php-src/ext/dom/lexbor/lexbor/html/
H A Dstyle.c12 const lxb_char_t *name, size_t size) in lxb_html_style_id_by_name() argument
16 data = lxb_css_property_by_name(name, size); in lxb_html_style_id_by_name()
19 return lxb_html_document_css_customs_find_id(doc, name, size); in lxb_html_style_id_by_name()
/php-src/Zend/
H A Dzend_string.c147 if ((p->h == h) && zend_string_equals_cstr(p->key, str, size)) { in zend_interned_string_ht_lookup_ex()
275 zend_ulong h = zend_inline_hash_func(str, size); in zend_string_init_interned_permanent()
283 ret = zend_string_init(str, size, permanent); in zend_string_init_interned_permanent()
290 zend_ulong h = zend_inline_hash_func(str, size); in zend_string_init_existing_interned_permanent()
297 ret = zend_string_init(str, size, permanent); in zend_string_init_existing_interned_permanent()
305 zend_ulong h = zend_inline_hash_func(str, size); in zend_string_init_interned_request()
313 ret = zend_interned_string_ht_lookup_ex(h, str, size, &CG(interned_strings)); in zend_string_init_interned_request()
325 ret = zend_string_init(str, size, permanent); in zend_string_init_interned_request()
334 zend_ulong h = zend_inline_hash_func(str, size); in zend_string_init_existing_interned_request()
340 ret = zend_interned_string_ht_lookup_ex(h, str, size, &CG(interned_strings)); in zend_string_init_existing_interned_request()
[all …]
/php-src/ext/standard/tests/streams/
H A Dbug78902.phpt11 $size = 1024 * 1024 * 2; // 2mb, larger than the memory limit
13 while ($size > 0) {
14 fputs($fp, str_pad('', min($chunk,$size)));
15 $size -= $chunk;

Completed in 57 milliseconds

12345678910>>...31