You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -478,17 +478,17 @@ ZEND_ATTRIBUTE_NONNULL zend_result phar_get_entry_data(phar_entry_data **ret, co
478
478
*ret=NULL;
479
479
*error=NULL;
480
480
481
-
if (FAILURE==phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) {
481
+
if (FAILURE==phar_get_archive(&phar, ZSTR_VAL(fname), ZSTR_LEN(fname), NULL, 0, error)) {
482
482
returnFAILURE;
483
483
}
484
484
485
485
if (for_write&&PHAR_G(readonly) && !phar->is_data) {
486
-
spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, disabled by ini setting", path, fname);
486
+
spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, disabled by ini setting", path, ZSTR_VAL(fname));
487
487
returnFAILURE;
488
488
}
489
489
490
490
if (!path_len) {
491
-
spprintf(error, 4096, "phar error: file \"\" in phar \"%s\" must not be empty", fname);
491
+
spprintf(error, 4096, "phar error: file \"\" in phar \"%s\" must not be empty", ZSTR_VAL(fname));
492
492
returnFAILURE;
493
493
}
494
494
really_get_entry:
@@ -512,20 +512,20 @@ ZEND_ATTRIBUTE_NONNULL zend_result phar_get_entry_data(phar_entry_data **ret, co
512
512
513
513
if (for_write&&phar->is_persistent) {
514
514
if (FAILURE==phar_copy_on_write(&phar)) {
515
-
spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, could not make cached phar writeable", path, fname);
515
+
spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, could not make cached phar writeable", path, ZSTR_VAL(fname));
516
516
returnFAILURE;
517
517
} else {
518
518
goto really_get_entry;
519
519
}
520
520
}
521
521
522
522
if (entry->is_modified&& !for_write) {
523
-
spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for reading, writable file pointers are open", path, fname);
523
+
spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for reading, writable file pointers are open", path, ZSTR_VAL(fname));
524
524
returnFAILURE;
525
525
}
526
526
527
527
if (entry->fp_refcount&&for_write) {
528
-
spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, readable file pointers are open", path, fname);
528
+
spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, readable file pointers are open", path, ZSTR_VAL(fname));
0 commit comments