]> granicus.if.org Git - php/commitdiff
windows fixes #2 (thanks Steph you rule)
authorGreg Beaver <cellog@php.net>
Fri, 14 Dec 2007 05:45:48 +0000 (05:45 +0000)
committerGreg Beaver <cellog@php.net>
Fri, 14 Dec 2007 05:45:48 +0000 (05:45 +0000)
ext/phar/phar.c

index a34daaac8ce85bddfdadf1724baf922654f16946..fc1d7f5acba53a9575c1a00140c155b64c43aea9 100644 (file)
@@ -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);