summaryrefslogtreecommitdiff
path: root/Zend/zend_stream.c
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2008-12-03 20:30:45 +0000
committerSVN Migration <svn@php.net>2008-12-03 20:30:45 +0000
commit2876046398950e59c3b3c460e67e6fec7ff2ba3c (patch)
tree33b2b8b4b859960a6446ad19d0ada1c55f9cfcda /Zend/zend_stream.c
parent3fb86b0b9e79e6a3312b694f30ee627e2e1b325c (diff)
downloadphp-git-php-5.3.0alpha2.tar.gz
This commit was manufactured by cvs2svn to create tag 'php_5_3_0alpha2'.php-5.3.0alpha2
Diffstat (limited to 'Zend/zend_stream.c')
-rw-r--r--Zend/zend_stream.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/Zend/zend_stream.c b/Zend/zend_stream.c
index a67fcdab1f..068b30ed87 100644
--- a/Zend/zend_stream.c
+++ b/Zend/zend_stream.c
@@ -49,11 +49,6 @@ static size_t zend_stream_stdio_fsizer(void *handle TSRMLS_DC) /* {{{ */
{
struct stat buf;
if (handle && fstat(fileno((FILE*)handle), &buf) == 0) {
-#ifdef S_ISREG
- if (!S_ISREG(buf.st_mode)) {
- return 0;
- }
-#endif
return buf.st_size;
}
return 0;
@@ -98,11 +93,6 @@ static size_t zend_stream_fsize(zend_file_handle *file_handle TSRMLS_DC) /* {{{
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) {
-#ifdef S_ISREG
- if (!S_ISREG(buf.st_mode)) {
- return 0;
- }
-#endif
return buf.st_size;
}