diff options
author | Anatol Belski <ab@php.net> | 2014-08-29 12:53:37 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-08-29 12:53:37 +0200 |
commit | 451856420c42d4fc2f2ab579135c23eb78ae7378 (patch) | |
tree | 92da8c82c5275fb4c21ad48ea0ee9ec8f7790393 /Zend/zend_stream.c | |
parent | 34f536693cc4696285f491e79ed14a6cee303b8f (diff) | |
download | php-git-451856420c42d4fc2f2ab579135c23eb78ae7378.tar.gz |
data type fixes
Diffstat (limited to 'Zend/zend_stream.c')
-rw-r--r-- | Zend/zend_stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_stream.c b/Zend/zend_stream.c index 7824ee1f83..f67f59af4a 100644 --- a/Zend/zend_stream.c +++ b/Zend/zend_stream.c @@ -105,7 +105,7 @@ static inline int zend_stream_is_mmap(zend_file_handle *file_handle) { /* {{{ */ static size_t zend_stream_fsize(zend_file_handle *file_handle TSRMLS_DC) /* {{{ */ { - struct stat buf; + zend_stat_t buf; if (zend_stream_is_mmap(file_handle)) { return file_handle->handle.stream.mmap.len; @@ -113,7 +113,7 @@ static size_t zend_stream_fsize(zend_file_handle *file_handle TSRMLS_DC) /* {{{ if (file_handle->type == ZEND_HANDLE_STREAM || file_handle->type == ZEND_HANDLE_MAPPED) { return file_handle->handle.stream.fsizer(file_handle->handle.stream.handle TSRMLS_CC); } - if (file_handle->handle.fp && fstat(fileno(file_handle->handle.fp), &buf) == 0) { + if (file_handle->handle.fp && zend_fstat(fileno(file_handle->handle.fp), &buf) == 0) { #ifdef S_ISREG if (!S_ISREG(buf.st_mode)) { return 0; |