/PHP-7.3/ext/phar/tests/tar/files/ |
H A D | corrupt_tarmaker.php.inc | 52 'size' => strlen($fileOrStream), 62 $stat['size'] = 0; 67 $stat['size'] = 0; 92 sprintf('%11s ',decoct($stat['size'])), 121 if ($stat['size'] % 512) { 122 fwrite($this->tmp, str_repeat("\0", 512 - $stat['size'] % 512)); 164 'size' => 0,
|
/PHP-7.3/ext/xml/tests/ |
H A D | bug32001b.phpt | 78 echo "Chunk size: ".($this->chunk_size ? "$this->chunk_size byte(s)\n": "all data at once\n"); 113 Chunk size: all data at once 125 Chunk size: 1 byte(s) 137 Chunk size: all data at once 149 Chunk size: 1 byte(s) 161 Chunk size: all data at once 173 Chunk size: 1 byte(s)
|
/PHP-7.3/ext/phar/ |
H A D | tar.h | 46 char size[12]; /* length of file in bytes */ member 70 char size[12]; /* length of file in bytes */ member
|
H A D | tar.c | 219 uint32_t sum1, sum2, size, old; in phar_parse_tarfile() local 275 phar_tar_number(hdr->size, sizeof(hdr->size)); in phar_parse_tarfile() 279 size = (size+511)&~511; in phar_parse_tarfile() 287 if (size > 511) { in phar_parse_tarfile() 392 size = ((size+511)&~511) - size; in phar_parse_tarfile() 532 if (size > 511) { in phar_parse_tarfile() 543 if (read == size) { in phar_parse_tarfile() 544 buf[size] = '\0'; in phar_parse_tarfile() 546 if (size > 50) { in phar_parse_tarfile() 564 myphar->alias_len = size; in phar_parse_tarfile() [all …]
|
/PHP-7.3/tests/output/ |
H A D | bug60768.phpt | 18 printf("Output size: %d, expected %d\n", strlen($storage), 20 + 10 * 10); 23 Output size: 120, expected 120
|
/PHP-7.3/ext/dba/ |
H A D | dba_db3.c | 50 gkey.data = (char *) key; gkey.size = keylen 137 if (newlen) *newlen = gval.size; 138 new = estrndup(gval.data, gval.size); 151 gval.size = vallen; 209 nkey = estrndup(gkey.data, gkey.size); 210 if (newlen) *newlen = gkey.size;
|
/PHP-7.3/ext/gd/libgd/ |
H A D | gdcache.c | 58 int size, in gdCacheCreate() argument 67 head->size = size; in gdCacheCreate() 122 if (i < head->size) in gdCacheGet()
|
H A D | gd_gd2.c | 46 int size; member 163 if (gdGetInt(&cidx[i].size, in) != 1) { in _gd2GetHeader() 167 if (cidx[i].offset < 0 || cidx[i].size < 0) { in _gd2GetHeader() 260 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromGd2Ptr() 298 if (chunkIdx[i].size > compMax) { in gdImageCreateFromGd2Ctx() 299 compMax = chunkIdx[i].size; in gdImageCreateFromGd2Ctx() 491 if (chunkIdx[i].size > compMax) { in gdImageCreateFromGd2PartCtx() 492 compMax = chunkIdx[i].size; in gdImageCreateFromGd2PartCtx() 793 chunkIdx[chunkNum++].size = compLen; in _gdImageGd2() 814 gdPutInt(chunkIdx[x].size, out); in _gdImageGd2() [all …]
|
/PHP-7.3/ext/standard/tests/filters/ |
H A D | bug22538.phpt | 11 $size = 65536; 21 $cnt = $size; 25 $cnt = $size - ($str_len + $cnt);
|
/PHP-7.3/Zend/ |
H A D | zend_llist.c | 24 ZEND_API void zend_llist_init(zend_llist *l, size_t size, llist_dtor_func_t dtor, unsigned char per… in zend_llist_init() argument 29 l->size = size; in zend_llist_init() 36 zend_llist_element *tmp = pemalloc(sizeof(zend_llist_element)+l->size-1, l->persistent); in zend_llist_add_element() 46 memcpy(tmp->data, element, l->size); in zend_llist_add_element() 54 zend_llist_element *tmp = pemalloc(sizeof(zend_llist_element)+l->size-1, l->persistent); in zend_llist_prepend_element() 64 memcpy(tmp->data, element, l->size); in zend_llist_prepend_element() 153 zend_llist_init(dst, src->size, src->dtor, src->persistent); in zend_llist_copy()
|
H A D | zend_hash.h | 263 # define zend_new_array(size) \ argument 264 (__builtin_constant_p(size) ? \ 268 _zend_new_array((size)) \ 271 _zend_new_array((size)) \ 274 # define zend_new_array(size) \ argument 275 _zend_new_array(size) 648 memcpy(Z_PTR_P(zv), pData, size); in zend_hash_add_mem() 661 memcpy(Z_PTR_P(zv), pData, size); in zend_hash_add_new_mem() 698 memcpy(p, pData, size); in zend_hash_update_mem() 707 memcpy(p, pData, size); in zend_hash_str_update_mem() [all …]
|
H A D | zend_stack.h | 24 int size, top, max; member 32 ZEND_API int zend_stack_init(zend_stack *stack, int size);
|
/PHP-7.3/main/streams/ |
H A D | cast.c | 61 static int stream_cookie_reader(void *cookie, char *buffer, int size) in stream_cookie_reader() argument 65 ret = php_stream_read((php_stream*)cookie, buffer, size); in stream_cookie_reader() 69 static int stream_cookie_writer(void *cookie, const char *buffer, int size) in stream_cookie_writer() argument 72 return php_stream_write((php_stream *)cookie, (char *)buffer, size); in stream_cookie_writer() 90 static ssize_t stream_cookie_reader(void *cookie, char *buffer, size_t size) in stream_cookie_reader() argument 94 ret = php_stream_read(((php_stream *)cookie), buffer, size); in stream_cookie_reader() 98 static ssize_t stream_cookie_writer(void *cookie, const char *buffer, size_t size) in stream_cookie_writer() argument 101 return php_stream_write(((php_stream *)cookie), (char *)buffer, size); in stream_cookie_writer()
|
/PHP-7.3/ext/zip/lib/ |
H A D | zip_source_buffer.c | 49 zip_uint64_t size; /* size of data in bytes */ member 199 st->size = ctx->in->size; in read_data() 200 st->comp_size = st->size; in read_data() 274 buffer->size = 0; in buffer_new() 289 buffer->size = length; in buffer_new_read() 333 length = ZIP_MIN(length, buffer->size - buffer->offset); in buffer_read() 363 …zip_int64_t new_offset = zip_source_seek_compute_offset(buffer->offset, buffer->size, data, len, e… in buffer_seek() 430 if (buffer->offset > buffer->size) { in buffer_write() 431 buffer->size = buffer->offset; in buffer_write()
|
H A D | zip_source_deflate.c | 47 zip_uint64_t size; member 123 ctx->size = ctx->zstr.total_in; in compress_read() 124 memcpy(data, ctx->buffer, ctx->size); in compress_read() 125 return (zip_int64_t)ctx->size; in compress_read() 162 ctx->size = ctx->zstr.total_in; in compress_read() 319 st->comp_size = ctx->size; in deflate_compress() 388 if (st->comp_size > 0 && st->size > 0) in deflate_decompress() 389 st->comp_size = st->size; in deflate_decompress()
|
/PHP-7.3/ext/standard/tests/file/ |
H A D | ftruncate_error.phpt | 6 Prototype: bool ftruncate ( resource $handle, int $size ); 16 echo "\n Initial file size = ".filesize($filename)."\n"; 25 // check the first size 31 // check the first size 56 // check the first size 63 // check the first size 76 Initial file size = 36
|
H A D | symlink_link_linkinfo_is_link_variation4.phpt | 27 Check size of file and hard link 47 echo "\n-- Check size of hard link and file --\n"; 63 echo "\n-- Check size of hard link and file --\n"; 79 echo "\n-- Check size of hard link and file --\n"; 101 -- Check size of hard link and file -- 108 -- Check size of hard link and file -- 115 -- Check size of hard link and file --
|
H A D | copy_variation11.phpt | 24 var_dump( filesize($file) ); //size of source before copy 27 var_dump( filesize($dir) ); //size of destination before copy 42 var_dump( filesize($file) ); //size of source after copy 43 var_dump( filesize($dir) ); //size of destination after copy
|
/PHP-7.3/tests/basic/ |
H A D | rfc1867_post_max_filesize.phpt | 48 ["size"]=> 61 ["size"]=> 74 ["size"]=>
|
H A D | rfc1867_empty_upload.phpt | 52 ["size"]=> 65 ["size"]=> 78 ["size"]=>
|
H A D | rfc1867_max_file_size.phpt | 52 ["size"]=> 65 ["size"]=> 78 ["size"]=>
|
/PHP-7.3/ext/bcmath/libbcmath/src/ |
H A D | output.c | 61 bc_out_long (val, size, space, out_char) in bc_out_long() argument 63 int size, space; 76 while (size > len) 79 size--;
|
/PHP-7.3/ext/standard/tests/array/ |
H A D | array_chunk_error.phpt | 5 /* Prototype : array array_chunk(array input, int size [, bool preserve_keys]) 18 $size = 10; 21 var_dump( array_chunk($input,$size,$preserve_keys, $extra_arg) );
|
/PHP-7.3/ext/standard/ |
H A D | md5.c | 189 static const void *body(PHP_MD5_CTX *ctx, const void *data, size_t size) in body() argument 286 } while (size -= 64); in body() 313 if ((ctx->lo = (saved_lo + size) & 0x1fffffff) < saved_lo) { in PHP_MD5Update() 316 ctx->hi += size >> 29; in PHP_MD5Update() 323 if (size < free) { in PHP_MD5Update() 324 memcpy(&ctx->buffer[used], data, size); in PHP_MD5Update() 330 size -= free; in PHP_MD5Update() 334 if (size >= 64) { in PHP_MD5Update() 335 data = body(ctx, data, size & ~(size_t)0x3f); in PHP_MD5Update() 336 size &= 0x3f; in PHP_MD5Update() [all …]
|
/PHP-7.3/ext/bz2/ |
H A D | bz2.c | 567 unsigned __int64 size = 0; in PHP_FUNCTION() local 569 unsigned long long size = 0; in PHP_FUNCTION() local 595 size = (bzs.total_out_hi32 * (unsigned int) -1) + bzs.total_out_lo32; in PHP_FUNCTION() 597 if (size > SIZE_MAX) { in PHP_FUNCTION() 602 dest = zend_string_safe_realloc(dest, 1, bzs.avail_out+1, (size_t) size, 0); in PHP_FUNCTION() 603 bzs.next_out = ZSTR_VAL(dest) + size; in PHP_FUNCTION() 607 size = (bzs.total_out_hi32 * (unsigned int) -1) + bzs.total_out_lo32; in PHP_FUNCTION() 609 if (UNEXPECTED(size > SIZE_MAX)) { in PHP_FUNCTION() 616 dest = zend_string_safe_realloc(dest, 1, (size_t)size, 1, 0); in PHP_FUNCTION() 617 ZSTR_LEN(dest) = (size_t)size; in PHP_FUNCTION() [all …]
|