Home
last modified time | relevance | path

Searched refs:st_size (Results 1 – 25 of 33) sorted by relevance

12

/PHP-7.3/ext/fileinfo/libmagic/
H A Dbuffer.c73 b->elen = (size_t)b->st.st_size < b->flen ? in buffer_fill()
74 (size_t)b->st.st_size : b->flen; in buffer_fill()
78 b->eoff = b->st.st_size - b->elen; in buffer_fill()
H A Dfsmagic.c234 if ((ms->flags & MAGIC_DEVICES) == 0 && sb->st_size == 0) { in file_fsmagic()
H A Dapprentice.c3002 if (st.sb.st_size < 8 || st.sb.st_size > MAXMAGIC_SIZE) { in apprentice_map()
3004 st.sb.st_size < 8 ? "small" : "large"); in apprentice_map()
3008 map->len = (size_t)st.sb.st_size; in apprentice_map()
3013 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { in apprentice_map()
3053 nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
3054 entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
3055 if ((zend_off_t)(entries * sizeof(struct magic)) != st.sb.st_size) { in apprentice_map()
3057 dbname, (unsigned long long)st.sb.st_size, in apprentice_map()
H A Dder.c399 l = (size_t)st.st_size; in main()
/PHP-7.3/ext/session/
H A Dmod_files.c98 size_t st_size; member
244 if (ZSTR_LEN(val) < data->st_size) { in ps_files_write()
491 data->st_size = sbuf.st_size; in PS_READ_FUNC()
493 if (sbuf.st_size == 0) { in PS_READ_FUNC()
498 *val = zend_string_alloc(sbuf.st_size, 0); in PS_READ_FUNC()
525 if (n != (zend_long)sbuf.st_size) { in PS_READ_FUNC()
/PHP-7.3/ext/standard/
H A Diptc.c222 spoolbuf = zend_string_safe_alloc(1, iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size, 0); in PHP_FUNCTION()
224 memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1); in PHP_FUNCTION()
H A Dftp_fopen_wrapper.c825 ssb->sb.st_size = 0; in php_stream_ftp_url_stat()
830 ssb->sb.st_size = atoi(tmp_line + 4); in php_stream_ftp_url_stat()
889 ssb->sb.st_blocks = (int)((4095 + ssb->sb.st_size) / ssb->sb.st_blksize); /* emulate ceil */ in php_stream_ftp_url_stat()
H A Dfilestat.c874 RETURN_LONG((zend_long)ssb.sb.st_size); in php_stat()
942 ZVAL_LONG(&stat_size, stat_sb->st_size); in php_stat()
/PHP-7.3/ext/dba/
H A Ddba_db4.c81 if (!s && !check_stat.st_size) {
95 if (!s && !check_stat.st_size) {
H A Ddba_db2.c54 if (!s && !check_stat.st_size) { in DBA_OPEN_FUNC()
H A Ddba_db3.c66 if (!s && !check_stat.st_size) {
/PHP-7.3/ext/zip/
H A Dzip_stream.c179 ssb->sb.st_size = sb.size; in php_zip_ops_stat()
182 ssb->sb.st_size = 0; in php_zip_ops_stat()
/PHP-7.3/ext/phar/
H A Dfunc_interceptors.c483 RETURN_LONG((zend_long)stat_sb->st_size); in phar_fancy_stat()
534 ZVAL_LONG(&stat_size, stat_sb->st_size); in phar_fancy_stat()
647 sb.st_size = 0; in phar_file_stat()
687 sb.st_size = 0; in phar_file_stat()
708 sb.st_size = data->uncompressed_filesize; in phar_file_stat()
720 sb.st_size = 0; in phar_file_stat()
H A Dstream.c491 ssb->sb.st_size = data->uncompressed_filesize; in phar_dostat()
499 ssb->sb.st_size = 0; in phar_dostat()
507 ssb->sb.st_size = 0; in phar_dostat()
/PHP-7.3/Zend/
H A Dzend_stream.c70 return buf.st_size; in zend_stream_stdio_fsizer()
119 return buf.st_size; in zend_stream_fsize()
H A Dzend_virtual_cwd.c364 buf->st_size = (zend_long)t.QuadPart; in php_sys_stat_ex()
/PHP-7.3/ext/fileinfo/
H A Dlibmagic.patch972 - if (st.st_size < 8 || st.st_size > MAXMAGIC_SIZE) {
973 + if (st.sb.st_size < 8 || st.sb.st_size > MAXMAGIC_SIZE) {
975 - st.st_size < 8 ? "small" : "large");
976 + st.sb.st_size < 8 ? "small" : "large");
980 - map->len = (size_t)st.st_size;
991 + map->len = (size_t)st.sb.st_size;
997 + if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) {
1049 + dbname, (unsigned long long)st.sb.st_size,
1347 b->elen = (size_t)b->st.st_size < b->flen ?
1348 (size_t)b->st.st_size : b->flen;
[all …]
/PHP-7.3/main/streams/
H A Dplain_wrapper.c700 if (range->offset > data->sb.st_size) { in php_stdiop_set_option()
701 range->offset = data->sb.st_size; in php_stdiop_set_option()
704 range->length > data->sb.st_size - range->offset) { in php_stdiop_set_option()
705 range->length = data->sb.st_size - range->offset; in php_stdiop_set_option()
H A Dstreams.c1451 if (php_stream_stat(src, &ssbuf) == 0 && ssbuf.sb.st_size > 0) { in _php_stream_copy_to_mem()
1452 max_len = ssbuf.sb.st_size + step; in _php_stream_copy_to_mem()
1505 if (ssbuf.sb.st_size == 0 in _php_stream_copy_to_stream_ex()
H A Dmemory.c210 ssb->sb.st_size = ms->fsize; in php_stream_memory_stat()
/PHP-7.3/ext/zip/lib/
H A Dzip_source_filep.c435 st->size = (zip_uint64_t)fst.st_size; in read_file()
/PHP-7.3/sapi/apache2handler/
H A Dsapi_apache2.c223 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
/PHP-7.3/ext/pdo_odbc/
H A Dodbc_stmt.c437 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); in odbc_stmt_param_hook()
/PHP-7.3/ext/opcache/
H A DZendAccelerator.c962 *size = tmpbuf->st_size; in zend_get_file_handle_timestamp()
1040 *size = statbuf.st_size; in zend_get_file_handle_timestamp()
/PHP-7.3/ext/soap/
H A Dphp_sdl.c1553 buf = in = emalloc(st.st_size); in get_sdl_from_cache()
1554 if (read(f, in, st.st_size) != st.st_size) { in get_sdl_from_cache()

Completed in 136 milliseconds

12