diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-17 11:49:10 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-17 11:49:10 +0200 |
| commit | 856c5d2837eac45567a4c83b22a5281f5d963d5c (patch) | |
| tree | 3716ffdce0bfa184f435c5664a118f8419171829 /Zend/zend_stream.h | |
| parent | 5a90dc77b8f244f603082aea022fadc0ce2c009c (diff) | |
| download | php-git-856c5d2837eac45567a4c83b22a5281f5d963d5c.tar.gz | |
Revert "Avoid unused fstat() call"
This reverts commit 5a90dc77b8f244f603082aea022fadc0ce2c009c.
Let's try to go with the reverse direction here and actually trust
the reported size...
Diffstat (limited to 'Zend/zend_stream.h')
| -rw-r--r-- | Zend/zend_stream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_stream.h b/Zend/zend_stream.h index ae5c73028f..87aec7aff3 100644 --- a/Zend/zend_stream.h +++ b/Zend/zend_stream.h @@ -28,6 +28,7 @@ /* 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); @@ -43,6 +44,7 @@ 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; |
