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
@@ -477,12 +476,12 @@ int phar_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options
477
476
{
478
477
phar_entry_info*entry;
479
478
phar_archive_data*phar=NULL;
480
-
char*error, *arch, *entry2;
481
-
size_tarch_len, entry_len;
479
+
char*error, *arch;
480
+
size_tarch_len;
482
481
php_url*resource=NULL;
483
482
484
483
/* pre-readonly check, we need to know if this is a data phar */
485
-
if (FAILURE==phar_split_fname(url, strlen(url), &arch, &arch_len, &entry2, &entry_len, 2, 2)) {
484
+
if (FAILURE==phar_split_fname(url, strlen(url), &arch, &arch_len, NULL, NULL, 2, 2)) {
486
485
php_stream_wrapper_log_error(wrapper, options, "phar error: cannot remove directory \"%s\", no phar archive specified, or phar archive does not exist", url);
487
486
return0;
488
487
}
@@ -492,7 +491,6 @@ int phar_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options
492
491
}
493
492
494
493
efree(arch);
495
-
efree(entry2);
496
494
497
495
if (PHAR_G(readonly) && (!phar|| !phar->is_data)) {
0 commit comments