From: Greg Beaver Date: Fri, 14 Dec 2007 05:45:48 +0000 (+0000) Subject: windows fixes #2 (thanks Steph you rule) X-Git-Tag: RELEASE_2_0_0a1~1175 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=708569029c4781a00c44284fbad15a7b02748989;p=php windows fixes #2 (thanks Steph you rule) --- diff --git a/ext/phar/phar.c b/ext/phar/phar.c index a34daaac8c..fc1d7f5acb 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -2624,9 +2624,9 @@ int phar_flush(phar_archive_data *archive, char *user_stub, long len, char **err php_stream_rewind(file); } php_stream_filter_append((&file->readfilters), filter); - entry->compressed_filesize = (php_uint32) php_stream_copy_to_stream(file, entry->cfp, entry->uncompressed_filesize+8192 TSRMLS_CC); + entry->compressed_filesize = (php_uint32) php_stream_copy_to_stream(file, entry->cfp, entry->uncompressed_filesize+8192); php_stream_filter_flush(filter, 1); - entry->compressed_filesize += (php_uint32) php_stream_copy_to_stream(file, entry->cfp, entry->uncompressed_filesize+8192 TSRMLS_CC); + entry->compressed_filesize += (php_uint32) php_stream_copy_to_stream(file, entry->cfp, entry->uncompressed_filesize+8192); php_stream_filter_remove(filter, 1 TSRMLS_CC); /* generate crc on compressed file */ php_stream_rewind(entry->cfp);