diff options
Diffstat (limited to 'ext/phar')
-rw-r--r-- | ext/phar/phar_object.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c index 783b7f77f8..3478507499 100644 --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@ -219,10 +219,7 @@ static int phar_file_action(phar_archive_data *phar, phar_entry_info *info, char name_len = spprintf(&name, 4096, "phar://%s/%s", arch, entry); } - file_handle.type = ZEND_HANDLE_FILENAME; - file_handle.filename = name; - file_handle.opened_path = NULL; - file_handle.free_filename = 0; + zend_stream_init_filename(&file_handle, name); PHAR_G(cwd) = NULL; PHAR_G(cwd_len) = 0; |