From 5a90dc77b8f244f603082aea022fadc0ce2c009c Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 17 Jul 2019 11:01:57 +0200 Subject: 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. --- Zend/zend_stream.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'Zend/zend_stream.h') 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; -- cgit v1.2.1