mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
This commit is contained in:
commit
e614b12712
@ -3655,7 +3655,7 @@ static void phar_add_file(phar_archive_data **pphar, char *filename, size_t file
|
|||||||
data->internal_file->compressed_filesize = data->internal_file->uncompressed_filesize = contents_len;
|
data->internal_file->compressed_filesize = data->internal_file->uncompressed_filesize = contents_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (contents_file != NULL && php_stream_stat(contents_file, &ssb TSRMLS_CC) != -1) {
|
if (contents_file != NULL && php_stream_stat(contents_file, &ssb) != -1) {
|
||||||
data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ;
|
data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ;
|
||||||
} else {
|
} else {
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
Loading…
Reference in New Issue
Block a user