/PHP-5.4/ext/standard/tests/file/ |
H A D | userstreams_005.phpt | 15 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 D | ftruncate_variation3.phpt | 55 $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 D | ftruncate_variation3-win32.phpt | 55 $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 D | ftruncate_variation6-win32.phpt | 58 $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 D | ftruncate_variation6.phpt | 58 $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 D | ftruncate_variation1-win32.phpt | 55 $new_size = 0; 58 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
|
H A D | ftruncate_variation1.phpt | 55 $new_size = 0; 58 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
|
H A D | ftruncate_variation2-win32.phpt | 56 $new_size = filesize($filename); 59 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
|
H A D | ftruncate_variation4.phpt | 56 $new_size = -1000; 59 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
|
H A D | ftruncate_variation2.phpt | 56 $new_size = filesize($filename); 59 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
|
H A D | ftruncate_variation4-win32.phpt | 56 $new_size = -1000; 59 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
|
H A D | ftruncate_variation7-win32.phpt | 57 $new_size = 200; 60 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
|
H A D | ftruncate_variation7.phpt | 57 $new_size = 200; 60 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
|
H A D | ftruncate_variation5-win32.phpt | 56 $new_size = filesize($filename) + 100; 59 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
|
H A D | ftruncate_variation5.phpt | 56 $new_size = filesize($filename) + 100; 59 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
|
/PHP-5.4/ext/mysqlnd/ |
H A D | mysqlnd_alloc.h | 38 void * (*m_erealloc)(void *ptr, size_t new_size MYSQLND_MEM_D); 39 void * (*m_perealloc)(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D); 44 void * (*m_realloc)(void *ptr, size_t new_size MYSQLND_MEM_D); 59 PHPAPI void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D); 60 PHPAPI void * _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D); 65 PHPAPI void * _mysqlnd_realloc(void *ptr, size_t new_size MYSQLND_MEM_D); 77 #define mnd_erealloc(ptr, new_size) mysqlnd_allocator.m_erealloc((ptr), (new_size) MYSQLND_MEM_C) argument 78 #define mnd_perealloc(ptr, new_size, p) mysqlnd_allocator.m_perealloc((ptr), (new_size), (p) MYSQLN… argument 83 #define mnd_realloc(ptr, new_size) mysqlnd_allocator.m_realloc((ptr), (new_size) MYSQLND_MEM_C) argument
|
H A D | mysqlnd_alloc.c | 241 void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) in _mysqlnd_erealloc() 262 ret = erealloc(REAL_PTR(ptr), REAL_SIZE(new_size)); in _mysqlnd_erealloc() 272 *(size_t *) ret = new_size; in _mysqlnd_erealloc() 315 *(size_t *) ret = new_size; in _mysqlnd_perealloc() 316 MYSQLND_INC_GLOBAL_STATISTIC_W_VALUE2(s1, 1, s2, new_size); in _mysqlnd_perealloc() 474 DBG_INF_FMT("ptr=%p new_size=%lu ", new_size, ptr); in _mysqlnd_realloc() 481 ret = realloc(REAL_PTR(ptr), REAL_SIZE(new_size)); in _mysqlnd_realloc() 492 *(size_t *) ret = new_size; in _mysqlnd_realloc() 669 return erealloc(ptr, new_size); in mysqlnd_zend_mm_erealloc() 677 return perealloc(ptr, new_size, persistent); in mysqlnd_zend_mm_perealloc() [all …]
|
/PHP-5.4/ext/mbstring/oniguruma/ |
H A D | st.c | 120 new_size(size) in new_size() function 171 size = new_size(size); /* round up to prime number */ 337 new_num_bins = new_size(old_num_bins+1);
|
/PHP-5.4/main/streams/ |
H A D | userspace.c | 1039 ptrdiff_t new_size = *(ptrdiff_t*) ptrparam; in php_userstreamop_set_option() local 1040 if (new_size >= 0 && new_size <= (ptrdiff_t)LONG_MAX) { in php_userstreamop_set_option() 1042 ZVAL_LONG(zvalue, (long)new_size); in php_userstreamop_set_option()
|
H A D | plain_wrapper.c | 791 ptrdiff_t new_size = *(ptrdiff_t*)ptrparam; in php_stdiop_set_option() local 792 if (new_size < 0) { in php_stdiop_set_option() 795 … return ftruncate(fd, new_size) == 0 ? PHP_STREAM_OPTION_RETURN_OK : PHP_STREAM_OPTION_RETURN_ERR; in php_stdiop_set_option()
|
/PHP-5.4/ext/standard/ |
H A D | html.c | 1092 size_t new_size = TRAVERSE_FOR_ENTITIES_EXPAND_SIZE(oldlen); in php_unescape_html_entities() local 1102 if (oldlen > new_size) { in php_unescape_html_entities() 1108 ret = emalloc(new_size); in php_unescape_html_entities()
|
/PHP-5.4/ext/exif/ |
H A D | exif.c | 2446 size_t new_size, new_move, new_value; in exif_thumbnail_build() local 2470 new_size = 8 + 2 + info_list->count * 12 + 4; in exif_thumbnail_build() 2472 …nfo, E_NOTICE, "Thumbnail: size of signature + directory(%d): 0x%02X", info_list->count, new_size); in exif_thumbnail_build() 2474 new_value= new_size; /* offset for ifd values outside ifd directory */ in exif_thumbnail_build() 2479 new_size += byte_count; in exif_thumbnail_build() 2482 new_move = new_size; in exif_thumbnail_build() 2483 new_data = safe_erealloc(ImageInfo->Thumbnail.data, 1, ImageInfo->Thumbnail.size, new_size); in exif_thumbnail_build() 2486 ImageInfo->Thumbnail.size += new_size; in exif_thumbnail_build()
|
/PHP-5.4/ext/sqlite3/libsqlite/ |
H A D | sqlite3.c | 24905 static int rehash(Hash *pH, unsigned int new_size){ 24910 if( new_size*sizeof(struct _ht)>SQLITE_MALLOC_SOFT_LIMIT ){ 24911 new_size = SQLITE_MALLOC_SOFT_LIMIT/sizeof(struct _ht); 24913 if( new_size==pH->htsize ) return 0; 24925 new_ht = (struct _ht *)sqlite3Malloc( new_size*sizeof(struct _ht) ); 24932 memset(new_ht, 0, new_size*sizeof(struct _ht)); 24934 unsigned int h = strHash(elem->pKey) % new_size; 140920 static int fts3Rehash(Fts3Hash *pH, int new_size){ 140925 assert( (new_size & (new_size-1))==0 ); 140930 pH->htsize = new_size; [all …]
|