summaryrefslogtreecommitdiff
path: root/Zend/zend_stream.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-07-17 11:01:57 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-07-17 11:22:31 +0200
commit5a90dc77b8f244f603082aea022fadc0ce2c009c (patch)
treea5682b1836a838aa9592cc831142b13042b752ec /Zend/zend_stream.h
parent6fbab09ef042df66153e4feaae8e07091d3d173e (diff)
downloadphp-git-5a90dc77b8f244f603082aea022fadc0ce2c009c.tar.gz
Avoid unused fstat() call
If we're including a file via PHP streams, we're not going to trust the reported file size anyway and populate in a loop -- so don't bother determining the file size in the first place. Only do this for non-tty HANDLE_FP now, which is the only case where this information was used.
Diffstat (limited to 'Zend/zend_stream.h')
-rw-r--r--Zend/zend_stream.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/Zend/zend_stream.h b/Zend/zend_stream.h
index 87aec7aff3..ae5c73028f 100644
--- a/Zend/zend_stream.h
+++ b/Zend/zend_stream.h
@@ -28,7 +28,6 @@
/* Lightweight stream implementation for the ZE scanners.
* These functions are private to the engine.
* */
-typedef size_t (*zend_stream_fsizer_t)(void* handle);
typedef size_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len);
typedef void (*zend_stream_closer_t)(void* handle);
@@ -44,7 +43,6 @@ typedef struct _zend_stream {
void *handle;
int isatty;
zend_stream_reader_t reader;
- zend_stream_fsizer_t fsizer;
zend_stream_closer_t closer;
} zend_stream;