diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-16 16:21:45 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-16 16:44:37 +0200 |
| commit | 46faf8f018e95de27873dbcf7c094af18c4c08e4 (patch) | |
| tree | edd85291c8c8070f3182617152098c9289242e6e /Zend/zend_stream.h | |
| parent | 349a388b90e767da9128efe6da0e4ebf5c752092 (diff) | |
| download | php-git-46faf8f018e95de27873dbcf7c094af18c4c08e4.tar.gz | |
Introduce zend_stream_init_fp() API
Reduce the amount of code that mucks around with zend_file_handle
initialization.
Diffstat (limited to 'Zend/zend_stream.h')
| -rw-r--r-- | Zend/zend_stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_stream.h b/Zend/zend_stream.h index c10292d272..1438a51dea 100644 --- a/Zend/zend_stream.h +++ b/Zend/zend_stream.h @@ -69,6 +69,7 @@ typedef struct _zend_file_handle { } zend_file_handle; BEGIN_EXTERN_C() +ZEND_API void zend_stream_init_fp(zend_file_handle *handle, FILE *fp, const char *filename); ZEND_API int zend_stream_open(const char *filename, zend_file_handle *handle); ZEND_API int zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len); ZEND_API void zend_file_handle_dtor(zend_file_handle *fh); |
