/PHP-5.5/ext/session/ |
H A D | mod_files.c | 65 size_t st_size; member 372 data->st_size = *vallen = sbuf.st_size; in PS_READ_FUNC() 374 if (sbuf.st_size == 0) { in PS_READ_FUNC() 379 *val = emalloc(sbuf.st_size); in PS_READ_FUNC() 382 n = pread(data->fd, *val, sbuf.st_size, 0); in PS_READ_FUNC() 385 n = read(data->fd, *val, sbuf.st_size); in PS_READ_FUNC() 388 if (n != sbuf.st_size) { in PS_READ_FUNC() 413 if (vallen < (int)data->st_size) { in PS_WRITE_FUNC()
|
/PHP-5.5/ext/dba/ |
H A D | dba_db4.c | 84 if (!s && !check_stat.st_size) { 98 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 | 65 if (!s && !check_stat.st_size) { in DBA_OPEN_FUNC()
|
/PHP-5.5/ext/zip/ |
H A D | zip_stream.c | 154 ssb->sb.st_size = sb.size; in php_zip_ops_stat() 157 ssb->sb.st_size = 0; in php_zip_ops_stat()
|
/PHP-5.5/ext/standard/ |
H A D | iptc.c | 220 poi = spoolbuf = safe_emalloc(1, (size_t)iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size); in PHP_FUNCTION() 221 memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1); in PHP_FUNCTION()
|
H A D | ftp_fopen_wrapper.c | 822 ssb->sb.st_size = 0; in php_stream_ftp_url_stat() 827 ssb->sb.st_size = atoi(tmp_line + 4); in php_stream_ftp_url_stat() 886 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 | 969 RETURN_LONG((long)ssb.sb.st_size); in php_stat() 1026 MAKE_LONG_ZVAL_INCREF(stat_size, stat_sb->st_size); in php_stat()
|
/PHP-5.5/ext/fileinfo/libmagic/ |
H A D | fsmagic.c | 239 if ((ms->flags & MAGIC_DEVICES) == 0 && sb->st_size == 0) { in file_fsmagic()
|
H A D | apprentice.c | 2643 if (st.sb.st_size < 8) { in apprentice_map() 2648 map->len = (size_t)st.sb.st_size; in apprentice_map() 2653 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { in apprentice_map() 2693 nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map() 2694 entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map() 2695 if ((off_t)(entries * sizeof(struct magic)) != st.sb.st_size) { in apprentice_map() 2697 dbname, (unsigned long long)st.sb.st_size, in apprentice_map()
|
/PHP-5.5/ext/phar/ |
H A D | func_interceptors.c | 490 RETURN_LONG((long)stat_sb->st_size); in phar_fancy_stat() 553 MAKE_LONG_ZVAL_INCREF(stat_size, stat_sb->st_size); in phar_fancy_stat() 672 sb.st_size = 0; in phar_file_stat() 718 sb.st_size = 0; in phar_file_stat() 745 sb.st_size = data->uncompressed_filesize; in phar_file_stat() 763 sb.st_size = 0; in phar_file_stat()
|
H A D | stream.c | 486 ssb->sb.st_size = data->uncompressed_filesize; in phar_dostat() 500 ssb->sb.st_size = 0; in phar_dostat() 514 ssb->sb.st_size = 0; in phar_dostat()
|
/PHP-5.5/main/streams/ |
H A D | plain_wrapper.c | 669 if (range->length == 0 && range->offset > 0 && range->offset < data->sb.st_size) { in php_stdiop_set_option() 670 range->length = data->sb.st_size - range->offset; in php_stdiop_set_option() 672 if (range->length == 0 || range->length > data->sb.st_size) { in php_stdiop_set_option() 673 range->length = data->sb.st_size; in php_stdiop_set_option() 675 if (range->offset >= data->sb.st_size) { in php_stdiop_set_option() 676 range->offset = data->sb.st_size; in php_stdiop_set_option()
|
H A D | streams.c | 1467 if (php_stream_stat(src, &ssbuf) == 0 && ssbuf.sb.st_size > 0) { in _php_stream_copy_to_mem() 1468 max_len = ssbuf.sb.st_size + step; in _php_stream_copy_to_mem() 1519 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-5.5/ext/zip/lib/ |
H A D | zip_source_filep.c | 221 st->size = fst.st_size; in read_file()
|
/PHP-5.5/Zend/ |
H A D | zend_stream.c | 74 return buf.st_size; in zend_stream_stdio_fsizer() 123 return buf.st_size; in zend_stream_fsize()
|
/PHP-5.5/ext/fileinfo/ |
H A D | libmagic.patch | 620 - if (st.st_size < 8) { 622 + if (st.sb.st_size < 8) { 627 - map->len = (size_t)st.st_size; 636 + map->len = (size_t)st.sb.st_size; 642 + if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { 672 - entries = (uint32_t)(st.st_size / sizeof(struct magic)); 673 - if ((off_t)(entries * sizeof(struct magic)) != st.st_size) { 675 - dbname, (unsigned long long)st.st_size, 689 + entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); 692 + dbname, (unsigned long long)st.sb.st_size, [all …]
|
/PHP-5.5/sapi/thttpd/ |
H A D | thttpd_patch | 750 hc->end_byte_loc = hc->sb.st_size - 1; 759 hc, 200, ok200title, hc->encodings, "", hc->type, hc->sb.st_size, 769 - hc, 304, err304title, hc->encodings, "", hc->type, hc->sb.st_size, 797 - hc, 200, ok200title, hc->encodings, "", hc->type, hc->sb.st_size, 799 + hc, 200, ok200title, hc->encodings, extraheads, hc->type, hc->sb.st_size, 1375 m = find_hash( sbP->st_ino, sbP->st_dev, sbP->st_size, sbP->st_ctime );
|
/PHP-5.5/sapi/apache2handler/ |
H A D | sapi_apache2.c | 234 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
|
/PHP-5.5/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 425 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); in odbc_stmt_param_hook()
|
/PHP-5.5/sapi/apache2filter/ |
H A D | sapi_apache2.c | 195 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
|
/PHP-5.5/ext/opcache/ |
H A D | ZendAccelerator.c | 737 *size = tmpbuf->st_size; in zend_get_file_handle_timestamp() 819 *size = statbuf.st_size; in zend_get_file_handle_timestamp()
|
/PHP-5.5/ext/soap/ |
H A D | php_sdl.c | 1556 buf = in = emalloc(st.st_size); in get_sdl_from_cache() 1557 if (read(f, in, st.st_size) != st.st_size) { in get_sdl_from_cache()
|
/PHP-5.5/TSRM/ |
H A D | tsrm_virtual_cwd.c | 389 buf->st_size = t; in php_sys_stat_ex()
|