/PHP-7.0/ext/session/ |
H A D | mod_files.c | 98 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.0/ext/standard/ |
H A D | iptc.c | 221 spoolbuf = zend_string_safe_alloc(1, iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size, 0); in PHP_FUNCTION() 223 memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1); in PHP_FUNCTION()
|
H A D | ftp_fopen_wrapper.c | 820 ssb->sb.st_size = 0; in php_stream_ftp_url_stat() 825 ssb->sb.st_size = atoi(tmp_line + 4); in php_stream_ftp_url_stat() 884 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 | 957 RETURN_LONG((zend_long)ssb.sb.st_size); in php_stat() 1025 ZVAL_LONG(&stat_size, stat_sb->st_size); in php_stat()
|
H A D | file.c | 1566 ZVAL_LONG(&stat_size, stat_ssb.sb.st_size); in PHP_NAMED_FUNCTION()
|
/PHP-7.0/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-7.0/ext/dba/ |
H A D | dba_db4.c | 83 if (!s && !check_stat.st_size) { 97 if (!s && !check_stat.st_size) {
|
H A D | dba_db2.c | 56 if (!s && !check_stat.st_size) { in DBA_OPEN_FUNC()
|
H A D | dba_db3.c | 68 if (!s && !check_stat.st_size) {
|
/PHP-7.0/ext/fileinfo/libmagic/ |
H A D | fsmagic.c | 242 if ((ms->flags & MAGIC_DEVICES) == 0 && sb->st_size == 0) { in file_fsmagic()
|
H A D | apprentice.c | 2852 if (st.sb.st_size < 8 || st.sb.st_size > MAXMAGIC_SIZE) { in apprentice_map() 2854 st.sb.st_size < 8 ? "small" : "large"); in apprentice_map() 2858 map->len = (size_t)st.sb.st_size; in apprentice_map() 2863 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { in apprentice_map() 2903 nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map() 2904 entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map() 2905 if ((zend_off_t)(entries * sizeof(struct magic)) != st.sb.st_size) { in apprentice_map() 2907 dbname, (unsigned long long)st.sb.st_size, in apprentice_map()
|
/PHP-7.0/main/streams/ |
H A D | plain_wrapper.c | 696 if (range->length == 0 && range->offset > 0 && range->offset < data->sb.st_size) { in php_stdiop_set_option() 697 range->length = data->sb.st_size - range->offset; in php_stdiop_set_option() 699 if (range->length == 0 || range->length > data->sb.st_size) { in php_stdiop_set_option() 700 range->length = data->sb.st_size; in php_stdiop_set_option() 702 if (range->offset >= data->sb.st_size) { in php_stdiop_set_option() 703 range->offset = data->sb.st_size; in php_stdiop_set_option()
|
H A D | streams.c | 1464 if (php_stream_stat(src, &ssbuf) == 0 && ssbuf.sb.st_size > 0) { in _php_stream_copy_to_mem() 1465 max_len = ssbuf.sb.st_size + step; in _php_stream_copy_to_mem() 1518 if (ssbuf.sb.st_size == 0 in _php_stream_copy_to_stream_ex()
|
H A D | memory.c | 215 ssb->sb.st_size = ms->fsize; in php_stream_memory_stat()
|
/PHP-7.0/ext/phar/ |
H A D | func_interceptors.c | 487 RETURN_LONG((zend_long)stat_sb->st_size); in phar_fancy_stat() 550 ZVAL_LONG(&stat_size, stat_sb->st_size); in phar_fancy_stat() 669 sb.st_size = 0; in phar_file_stat() 715 sb.st_size = 0; in phar_file_stat() 742 sb.st_size = data->uncompressed_filesize; in phar_file_stat() 760 sb.st_size = 0; in phar_file_stat()
|
H A D | stream.c | 489 ssb->sb.st_size = data->uncompressed_filesize; in phar_dostat() 503 ssb->sb.st_size = 0; in phar_dostat() 517 ssb->sb.st_size = 0; in phar_dostat()
|
H A D | util.c | 238 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry()
|
/PHP-7.0/Zend/ |
H A D | zend_stream.c | 73 return buf.st_size; in zend_stream_stdio_fsizer() 122 return buf.st_size; in zend_stream_fsize()
|
H A D | zend_virtual_cwd.c | 411 buf->st_size = (zend_long)t.QuadPart; in php_sys_stat_ex()
|
/PHP-7.0/ext/fileinfo/ |
H A D | libmagic.patch | 702 - if (st.st_size < 8 || st.st_size > MAXMAGIC_SIZE) { 703 + if (st.sb.st_size < 8 || st.sb.st_size > MAXMAGIC_SIZE) { 705 - st.st_size < 8 ? "small" : "large"); 706 + st.sb.st_size < 8 ? "small" : "large"); 710 - map->len = (size_t)st.st_size; 720 + map->len = (size_t)st.sb.st_size; 726 + if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { 772 + nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); 773 + entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); 776 + dbname, (unsigned long long)st.sb.st_size, [all …]
|
/PHP-7.0/ext/zip/lib/ |
H A D | zip_source_filep.c | 435 st->size = (zip_uint64_t)fst.st_size; in read_file()
|
/PHP-7.0/sapi/apache2handler/ |
H A D | sapi_apache2.c | 236 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
|
/PHP-7.0/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 438 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); in odbc_stmt_param_hook()
|
/PHP-7.0/ext/opcache/ |
H A D | ZendAccelerator.c | 806 *size = tmpbuf->st_size; in zend_get_file_handle_timestamp() 884 *size = statbuf.st_size; in zend_get_file_handle_timestamp()
|
/PHP-7.0/ext/soap/ |
H A D | php_sdl.c | 1550 buf = in = emalloc(st.st_size); in get_sdl_from_cache() 1551 if (read(f, in, st.st_size) != st.st_size) { in get_sdl_from_cache()
|