]> granicus.if.org Git - php/commitdiff
- Dropped one line by accident
authorMarcus Boerger <helly@php.net>
Sat, 27 Jan 2007 21:24:28 +0000 (21:24 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 27 Jan 2007 21:24:28 +0000 (21:24 +0000)
ext/phar/phar.c

index 4663d289fcb48ad7f44597458c9c3c08cd568924..53d9d23951198aca538445be1e966bb74f6f2ea4 100644 (file)
@@ -295,6 +295,7 @@ static int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len
                        if (entry->fp) {
                                /* make a copy */
                                if (for_trunc) {
+                                       php_stream_truncate_set_size(entry->fp, 0);
                                        entry->is_modified = 1;
                                        phar->is_modified = 1;
                                        /* reset file size */