mirror of
https://github.com/php/php-src.git
synced 2026-04-04 22:52:40 +02:00
Merge branch 'PHP-7.0'
* PHP-7.0: Fixed bug #71625 Crash in php7.dll with bad phar filename
This commit is contained in:
@@ -1784,8 +1784,11 @@ static int phar_analyze_path(const char *fname, const char *ext, int ext_len, in
|
||||
#ifdef PHP_WIN32
|
||||
phar_unixify_path_separators(realpath, strlen(realpath));
|
||||
#endif
|
||||
slash = strstr(realpath, filename) + ((ext - fname) + ext_len);
|
||||
*slash = '\0';
|
||||
slash = strstr(realpath, filename);
|
||||
if (slash) {
|
||||
slash += ((ext - fname) + ext_len);
|
||||
*slash = '\0';
|
||||
}
|
||||
slash = strrchr(realpath, '/');
|
||||
|
||||
if (slash) {
|
||||
|
||||
Reference in New Issue
Block a user