/PHP-8.1/ext/fileinfo/libmagic/ |
H A D | is_csv.c | 187 if ((p = malloc(st.st_size)) == NULL) in main() 189 (intmax_t)st.st_size); in main() 190 if (read(fd, p, st.st_size) != st.st_size) in main() 192 (intmax_t)st.st_size); in main() 193 printf("is csv %d\n", csv_parse(p, p + st.st_size)); in main()
|
H A D | buffer.c | 76 b->elen = CAST(size_t, b->st.st_size) < b->flen ? in buffer_fill() 77 CAST(size_t, b->st.st_size) : b->flen; in buffer_fill() 81 b->eoff = b->st.st_size - b->elen; in buffer_fill()
|
H A D | is_json.c | 458 if ((p = malloc(st.st_size)) == NULL) in main() 460 (intmax_t)st.st_size); in main() 461 if (read(fd, p, st.st_size) != st.st_size) in main() 463 (intmax_t)st.st_size); in main() 466 p + st.st_size, stats, 0)); in main()
|
H A D | fsmagic.c | 227 if ((ms->flags & MAGIC_DEVICES) == 0 && sb->st_size == 0) { in file_fsmagic()
|
H A D | apprentice.c | 3081 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()
|
H A D | der.c | 440 l = (size_t)st.st_size; in main()
|
/PHP-8.1/ext/session/ |
H A D | mod_files.c | 96 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/ext/zip/ |
H A D | zip_stream.c | 177 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/dba/ |
H A D | dba_db4.c | 79 if (!s && !check_stat.st_size) { 93 if (!s && !check_stat.st_size) {
|
H A D | dba_db2.c | 52 if (!s && !check_stat.st_size) { in DBA_OPEN_FUNC()
|
H A D | dba_db3.c | 64 if (!s && !check_stat.st_size) {
|
/PHP-8.1/ext/standard/ |
H A D | iptc.c | 210 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 D | ftp_fopen_wrapper.c | 813 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 D | filestat.c | 906 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 D | func_interceptors.c | 487 RETURN_LONG((zend_long)stat_sb->st_size); in phar_fancy_stat() 538 ZVAL_LONG(&stat_size, stat_sb->st_size); in phar_fancy_stat() 651 sb.st_size = 0; in phar_file_stat() 691 sb.st_size = 0; in phar_file_stat() 712 sb.st_size = data->uncompressed_filesize; in phar_file_stat() 724 sb.st_size = 0; in phar_file_stat()
|
H A D | stream.c | 488 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/fileinfo/ |
H A D | libmagic.patch | 681 - 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/win32/ |
H A D | ioutil.c | 881 buf->st_size = _buf.st_size; in php_win32_ioutil_fstat_int() 964 buf->st_size = (zend_long)t.QuadPart; in php_win32_ioutil_fstat_int()
|
H A D | ioutil.h | 705 php_win32_ioutil_size_t st_size; member
|
/PHP-8.1/Zend/ |
H A D | zend_stream.c | 49 return buf.st_size; in zend_stream_stdio_fsizer()
|
/PHP-8.1/main/streams/ |
H A D | plain_wrapper.c | 759 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()
|
H A D | memory.c | 195 ssb->sb.st_size = ZSTR_LEN(ms->data); in php_stream_memory_stat()
|
H A D | streams.c | 1513 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()
|
/PHP-8.1/sapi/apache2handler/ |
H A D | sapi_apache2.c | 232 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
|
/PHP-8.1/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 439 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); in odbc_stmt_param_hook()
|