diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-16 16:40:54 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-16 16:44:37 +0200 |
| commit | 49bac9b77bc9cacc0f984092d226e951ae336b43 (patch) | |
| tree | f705f93aa693fc5e0ea5c44231585fd41f42dd57 /Zend/zend_stream.h | |
| parent | 46faf8f018e95de27873dbcf7c094af18c4c08e4 (diff) | |
| download | php-git-49bac9b77bc9cacc0f984092d226e951ae336b43.tar.gz | |
Introduce zend_stream_init_filename()
Avoid more ad-hoc initialization of zend_file_handle structures.
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 1438a51dea..18b07d6b3c 100644 --- a/Zend/zend_stream.h +++ b/Zend/zend_stream.h @@ -70,6 +70,7 @@ typedef struct _zend_file_handle { BEGIN_EXTERN_C() ZEND_API void zend_stream_init_fp(zend_file_handle *handle, FILE *fp, const char *filename); +ZEND_API void zend_stream_init_filename(zend_file_handle *handle, 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); |
