Home
last modified time | relevance | path

Searched refs:st_size (Results 1 – 25 of 36) sorted by last modified time

12

/PHP-8.1/main/
H A Dmain.c1518 return ssb.sb.st_size; in php_zend_stream_fsizer()
/PHP-8.1/main/streams/
H A Dstreams.c1513 if (php_stream_stat(src, &ssbuf) == 0 && ssbuf.sb.st_size > 0) { in _php_stream_copy_to_mem()
1514 max_len = MAX(ssbuf.sb.st_size - src->position, 0) + step; in _php_stream_copy_to_mem()
H A Dmemory.c195 ssb->sb.st_size = ZSTR_LEN(ms->data); in php_stream_memory_stat()
H A Dplain_wrapper.c759 if (range->offset > data->sb.st_size) { in php_stdiop_set_option()
760 range->offset = data->sb.st_size; in php_stdiop_set_option()
763 range->length > data->sb.st_size - range->offset) { in php_stdiop_set_option()
764 range->length = data->sb.st_size - range->offset; in php_stdiop_set_option()
/PHP-8.1/ext/zip/
H A Dphp_zip.c1488 if (VCWD_STAT(resolved_path, &st) == 0 && st.st_size == 0) {
H A Dzip_stream.c177 ssb->sb.st_size = sb.size; in php_zip_ops_stat()
180 ssb->sb.st_size = 0; in php_zip_ops_stat()
/PHP-8.1/ext/ffi/
H A Dffi.c3205 code_size = buf.st_size; in zend_ffi_load()
/PHP-8.1/ext/soap/
H A Dphp_sdl.c1563 buf = in = emalloc(st.st_size); in get_sdl_from_cache()
1564 if (read(f, in, st.st_size) != st.st_size) { in get_sdl_from_cache()
/PHP-8.1/ext/opcache/
H A DZendAccelerator.c988 *size = tmpbuf->st_size; in zend_get_file_handle_timestamp()
1060 *size = statbuf.st_size; in zend_get_file_handle_timestamp()
/PHP-8.1/sapi/cli/
H A Dphp_cli_server.c2121 smart_str_append_unsigned_ex(&buffer, client->request.sb.st_size, 1); in php_cli_server_begin_send_static()
/PHP-8.1/ext/sqlite3/
H A Dsqlite3.c1215 ssb->sb.st_size = sqlite3_stream->size; in php_sqlite3_stream_stat()
/PHP-8.1/ext/standard/
H A Dfile.c1562 ZVAL_LONG(&stat_size, stat_ssb.sb.st_size); in php_fstat()
H A Dftp_fopen_wrapper.c813 ssb->sb.st_size = 0; in php_stream_ftp_url_stat()
818 ssb->sb.st_size = atoi(tmp_line + 4); in php_stream_ftp_url_stat()
877 ssb->sb.st_blocks = (int)((4095 + ssb->sb.st_size) / ssb->sb.st_blksize); /* emulate ceil */ in php_stream_ftp_url_stat()
H A Diptc.c210 spoolbuf = zend_string_safe_alloc(1, iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size, 0); in PHP_FUNCTION()
212 memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1); in PHP_FUNCTION()
H A Dfilestat.c906 RETURN_LONG((zend_long)ssb.sb.st_size); in php_stat()
975 ZVAL_LONG(&stat_size, stat_sb->st_size); in php_stat()
/PHP-8.1/ext/phar/
H A Dutil.c227 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry()
H A Dstream.c488 ssb->sb.st_size = data->uncompressed_filesize; in phar_dostat()
496 ssb->sb.st_size = 0; in phar_dostat()
504 ssb->sb.st_size = 0; in phar_dostat()
/PHP-8.1/ext/curl/
H A Dinterface.c2077 filesize = ssb.sb.st_size; in build_mime_structure_from_hash()
/PHP-8.1/ext/exif/
H A Dexif.c4438 ImageInfo->FileSize = st.st_size; in exif_read_from_impl()
/PHP-8.1/ext/session/
H A Dmod_files.c96 size_t st_size; member
242 if (ZSTR_LEN(val) < data->st_size) { in ps_files_write()
488 data->st_size = sbuf.st_size; in PS_READ_FUNC()
490 if (sbuf.st_size == 0) { in PS_READ_FUNC()
495 *val = zend_string_alloc(sbuf.st_size, 0); in PS_READ_FUNC()
522 if (n != (zend_long)sbuf.st_size) { in PS_READ_FUNC()
/PHP-8.1/sapi/apache2handler/
H A Dsapi_apache2.c232 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
/PHP-8.1/ext/fileinfo/libmagic/
H A Dapprentice.c3081 if (st.sb.st_size < 8 || st.sb.st_size > maxoff_t()) { in apprentice_map()
3083 st.sb.st_size < 8 ? "small" : "large"); in apprentice_map()
3088 map->len = CAST(size_t, st.sb.st_size); in apprentice_map()
3091 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { in apprentice_map()
3129 nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
3130 entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
3131 if ((zend_off_t)(entries * sizeof(struct magic)) != st.sb.st_size) { in apprentice_map()
3133 dbname, (unsigned long long)st.sb.st_size, in apprentice_map()
/PHP-8.1/ext/fileinfo/
H A Dlibmagic.patch681 - if (st.st_size < 8 || st.st_size > maxoff_t()) {
683 + if (st.sb.st_size < 8 || st.sb.st_size > maxoff_t()) {
685 - st.st_size < 8 ? "small" : "large");
686 + st.sb.st_size < 8 ? "small" : "large");
690 - map->len = CAST(size_t, st.st_size);
711 + map->len = CAST(size_t, st.sb.st_size);
720 + if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) {
790 + dbname, (unsigned long long)st.sb.st_size,
999 b->elen = CAST(size_t, b->st.st_size) < b->flen ?
1000 CAST(size_t, b->st.st_size) : b->flen;
[all …]
/PHP-8.1/ext/dba/
H A Ddba_db2.c52 if (!s && !check_stat.st_size) { in DBA_OPEN_FUNC()
H A Ddba_db3.c64 if (!s && !check_stat.st_size) {

Completed in 231 milliseconds

12