Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 25 of 27) sorted by relevance

12

/PHP-7.0/ext/standard/tests/file/
H A Duserstreams_005.phpt15 function stream_truncate($new_size) {
16 echo "truncation with new_size=$new_size\n";
21 function stream_truncate($new_size) {
22 echo "truncation with new_size=$new_size\n";
52 truncation with new_size=0
55 truncation with new_size=10
60 truncation with new_size=0
H A Dftruncate_variation3-win32.phpt55 $new_size = filesize($filename)/2;
58 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
63 var_dump( filesize($filename) ); // new file size = $new_size
H A Dftruncate_variation3.phpt55 $new_size = filesize($filename)/2;
58 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
63 var_dump( filesize($filename) ); // new file size = $new_size
H A Dftruncate_variation6-win32.phpt58 $new_size = 15;
61 if(ftruncate($file_handle, $new_size) ){// truncate it
62 echo "File content after truncating file to $new_size size : ";
H A Dftruncate_variation6.phpt58 $new_size = 15;
61 if(ftruncate($file_handle, $new_size) ){// truncate it
62 echo "File content after truncating file to $new_size size : ";
H A Dftruncate_variation1-win32.phpt55 $new_size = 0;
58 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
H A Dftruncate_variation1.phpt55 $new_size = 0;
58 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
H A Dftruncate_variation2-win32.phpt56 $new_size = filesize($filename);
59 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
H A Dftruncate_variation2.phpt56 $new_size = filesize($filename);
59 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
H A Dftruncate_variation4-win32.phpt56 $new_size = -1000;
59 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
H A Dftruncate_variation4.phpt56 $new_size = -1000;
59 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
H A Dftruncate_variation7-win32.phpt57 $new_size = 200;
60 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
H A Dftruncate_variation7.phpt57 $new_size = 200;
60 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
H A Dftruncate_variation5-win32.phpt56 $new_size = filesize($filename) + 100;
59 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
H A Dftruncate_variation5.phpt56 $new_size = filesize($filename) + 100;
59 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
/PHP-7.0/ext/mysqlnd/
H A Dmysqlnd_alloc.h35 void * (*m_erealloc)(void *ptr, size_t new_size MYSQLND_MEM_D);
36 void * (*m_perealloc)(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D);
41 void * (*m_realloc)(void *ptr, size_t new_size MYSQLND_MEM_D);
56 PHPAPI void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D);
57 PHPAPI void * _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D);
62 PHPAPI void * _mysqlnd_realloc(void *ptr, size_t new_size MYSQLND_MEM_D);
74 #define mnd_erealloc(ptr, new_size) mysqlnd_allocator.m_erealloc((ptr), (new_size) MYSQLND_MEM_C) argument
75 #define mnd_perealloc(ptr, new_size, p) mysqlnd_allocator.m_perealloc((ptr), (new_size), (p) MYSQLN… argument
80 #define mnd_realloc(ptr, new_size) mysqlnd_allocator.m_realloc((ptr), (new_size) MYSQLND_MEM_C) argument
H A Dmysqlnd_alloc.c243 void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) in _mysqlnd_erealloc()
275 *(size_t *) ret = new_size; in _mysqlnd_erealloc()
319 *(size_t *) ret = new_size; in _mysqlnd_perealloc()
320 MYSQLND_INC_GLOBAL_STATISTIC_W_VALUE2(s1, 1, s2, new_size); in _mysqlnd_perealloc()
469 void * _mysqlnd_realloc(void *ptr, size_t new_size MYSQLND_MEM_D) in _mysqlnd_realloc()
484 TRACE_ALLOC_INF_FMT("ptr=%p new_size=%lu ", new_size, ptr); in _mysqlnd_realloc()
491 ret = realloc(REAL_PTR(ptr), REAL_SIZE(new_size)); in _mysqlnd_realloc()
502 *(size_t *) ret = new_size; in _mysqlnd_realloc()
681 return erealloc(ptr, new_size); in mysqlnd_zend_mm_erealloc()
689 return perealloc(ptr, new_size, persistent); in mysqlnd_zend_mm_perealloc()
[all …]
/PHP-7.0/Zend/
H A Dzend_alloc.c834 zend_mm_munmap((char*)addr + new_size, old_size - new_size);
1475 size_t new_size; local
1505 if (new_size == old_size) {
1512 } else if (new_size < old_size) {
1519 heap->size -= old_size - new_size;
1550 heap->size += new_size - old_size;
1595 if (new_size == old_size) {
1605 } else if (new_size < old_size) {
1813 size_t size = heap->real_size + new_size;
1819 size_t size = heap->size + new_size;
[all …]
H A Dzend_alloc.h292 …zend_mm_chunk_truncate_t)(zend_mm_storage *storage, void *chunk, size_t old_size, size_t new_size);
293 …(*zend_mm_chunk_extend_t)(zend_mm_storage *storage, void *chunk, size_t old_size, size_t new_size);
/PHP-7.0/ext/mbstring/oniguruma/
H A Dregenc.c842 resize_property_list(int new_size, const OnigCodePoint*** plist, int* psize) in resize_property_list() argument
847 size = sizeof(OnigCodePoint*) * new_size; in resize_property_list()
858 *psize = new_size; in resize_property_list()
873 int new_size = (*psize == 0 ? PROP_INIT_SIZE : *psize * 2); in onigenc_property_list_add_property() local
874 r = resize_property_list(new_size, plist, psize); in onigenc_property_list_add_property()
H A Dst.c104 new_size(size) in new_size() function
155 size = new_size(size); /* round up to prime number */
321 new_num_bins = new_size(old_num_bins+1);
/PHP-7.0/main/streams/
H A Duserspace.c1006 ptrdiff_t new_size = *(ptrdiff_t*) ptrparam; in php_userstreamop_set_option() local
1007 if (new_size >= 0 && new_size <= (ptrdiff_t)LONG_MAX) { in php_userstreamop_set_option()
1008 ZVAL_LONG(&args[0], (zend_long)new_size); in php_userstreamop_set_option()
H A Dplain_wrapper.c847 ptrdiff_t new_size = *(ptrdiff_t*)ptrparam; in php_stdiop_set_option() local
848 if (new_size < 0) { in php_stdiop_set_option()
851 … return ftruncate(fd, new_size) == 0 ? PHP_STREAM_OPTION_RETURN_OK : PHP_STREAM_OPTION_RETURN_ERR; in php_stdiop_set_option()
/PHP-7.0/ext/standard/
H A Dhtml.c1104 size_t new_size = TRAVERSE_FOR_ENTITIES_EXPAND_SIZE(oldlen); in php_unescape_html_entities() local
1114 if (oldlen > new_size) { in php_unescape_html_entities()
1120 ret = zend_string_alloc(new_size, 0); in php_unescape_html_entities()
/PHP-7.0/ext/exif/
H A Dexif.c2431 size_t new_size, new_move, new_value; in exif_thumbnail_build() local
2455 new_size = 8 + 2 + info_list->count * 12 + 4; in exif_thumbnail_build()
2457 …nfo, E_NOTICE, "Thumbnail: size of signature + directory(%d): 0x%02X", info_list->count, new_size); in exif_thumbnail_build()
2459 new_value= new_size; /* offset for ifd values outside ifd directory */ in exif_thumbnail_build()
2464 new_size += byte_count; in exif_thumbnail_build()
2467 new_move = new_size; in exif_thumbnail_build()
2468 new_data = safe_erealloc(ImageInfo->Thumbnail.data, 1, ImageInfo->Thumbnail.size, new_size); in exif_thumbnail_build()
2471 ImageInfo->Thumbnail.size += new_size; in exif_thumbnail_build()

Completed in 95 milliseconds

12