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
COMPLETELY rework filename extension detection. Now the only requirements are:
1 - executable phars must contain '.phar' in the filename
2 - non-executable phars must not contain '.phar' and must have an extension of at least 1 character
In addition, phar filenames must exist if opened for read, and the directory containing the phar must exist if opened for creation
if opened for creation, the file must not already exist
[DOC]
if (FAILURE==phar_split_fname(url, strlen(url), &arch, &arch_len, &entry2, &entry_len, 2, 2TSRMLS_CC)) {
540
+
php_stream_wrapper_log_error(wrapper, optionsTSRMLS_CC, "phar error: cannot remove directory \"%s\", no phar archive specified, or phar archive does not exist", url);
541
541
returnFAILURE;
542
542
}
543
543
if (FAILURE==phar_get_archive(&phar, arch, arch_len, NULL, 0, NULLTSRMLS_CC)) {
0 commit comments