diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c index e4aad180924..f2e65b32f02 100644 --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@ -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; } - 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 ; } else { #ifndef _WIN32