Home
last modified time | relevance | path

Searched refs:file_size (Results 1 – 9 of 9) sorted by relevance

/php-src/ext/zip/tests/
H A Dpecl12414.phpt17 $file_size=$finfo['size'];
19 if($file_size>0) {
23 if(strlen($contents)!=$file_size) {
/php-src/Zend/
H A Dzend_stream.c129 size_t file_size; in zend_stream_fixup() local
156 file_size = zend_stream_fsize(file_handle); in zend_stream_fixup()
157 if (file_size == (size_t)-1) { in zend_stream_fixup()
161 if (file_size) { in zend_stream_fixup()
164 *buf = safe_emalloc(1, file_size, ZEND_MMAP_AHEAD); in zend_stream_fixup()
165 while ((read = zend_stream_read(file_handle, *buf + size, file_size - size)) > 0) { in zend_stream_fixup()
/php-src/ext/standard/tests/file/
H A Dfile.inc42 "text" = fills with string of size $file_size
43 "numeric" = fills with numeric value of size $file_size
87 "text" = fills with string of size $file_size
88 "numeric" = fills with numeric value of size $file_size
95 function fill_file($file_handle, $fill_type, $file_size) {
122 $size = $file_size;
140 $bytes_written = fwrite($file_handle, $num_values, $file_size);
141 if ( $bytes_written != $file_size ) {
257 $file_size = $size;
259 $file_size = $file_size * 1024;
[all …]
H A Dftruncate_variation4.phpt46 $file_size = filesize($filename); // current filesize
47 var_dump($file_size === 1024 || $file_size === 1137); // 1137 is for Windows with 't' mode
58 $file_size = filesize($filename); // new file size = actual size, no change
59 var_dump($file_size === 1024 || $file_size === 1137); // 1137 is for Windows with 't' mode
/php-src/main/streams/
H A Dphp_stream_context.h112 #define php_stream_notify_file_size(context, file_size, xmsg, xcode) do { if ((context) && (context… argument
114 (xmsg), (xcode), 0, (file_size), NULL); } } while(0)
H A Dplain_wrapper.c811 LARGE_INTEGER file_size; in php_stdiop_set_option() local
848 if (!GetFileSizeEx(hfile, &file_size)) { in php_stdiop_set_option()
854 size = file_size.QuadPart; in php_stdiop_set_option()
856 if (file_size.HighPart) { in php_stdiop_set_option()
861 size = file_size.LowPart; in php_stdiop_set_option()
/php-src/main/
H A Drfc1867.c1208 zval file_size, error_type; local
1216 ZVAL_LONG(&file_size, 0);
1233 ZVAL_LONG(&file_size, total_bytes);
1251 ZVAL_STRING(&file_size, file_size_buf);
1253 …register_http_post_files_variable_ex(lbuf, &file_size, &PG(http_globals)[TRACK_VARS_FILES], size_o…
/php-src/ext/standard/
H A Dftp_fopen_wrapper.c414 size_t file_size = 0; in php_stream_url_wrap_ftp() local
485 file_size = atoi(sizestr); in php_stream_url_wrap_ftp()
486 php_stream_notify_file_size(context, file_size, tmp_line, result); in php_stream_url_wrap_ftp()
566 php_stream_notify_progress_init(context, 0, file_size); in php_stream_url_wrap_ftp()
H A Dhttp_fopen_wrapper.c134 size_t chunk_size = 0, file_size = 0; in php_stream_url_wrap_http_ex() local
795 file_size = atoi(http_header_value); in php_stream_url_wrap_http_ex()
796 php_stream_notify_file_size(context, file_size, http_header_line, 0); in php_stream_url_wrap_http_ex()
949 php_stream_notify_progress_init(context, 0, file_size); in php_stream_url_wrap_http_ex()

Completed in 25 milliseconds