Skip to content

Commit c082489

Browse files
committed
Fix windows?
1 parent 561401c commit c082489

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/phar/util.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ zend_result phar_mount_entry(phar_archive_data *phar, char *filename, size_t fil
209209

210210
entry.phar = phar;
211211
#ifdef PHP_WIN32
212-
phar_unixify_path_separators(entry.filename, path_len);
212+
entry.filename = zend_string_separate(entry.filename);
213+
phar_unixify_path_separators(ZSTR_VAL(entry.filename), path_len);
213214
#endif
214215
if (is_phar) {
215216
entry.tmp = estrndup(filename, filename_len);

0 commit comments

Comments
 (0)