Browse Source

- Cannot change stream here

migration/RELEASE_1_0_0
Marcus Boerger 20 years ago
parent
commit
c7523db97f
  1. 3
      ext/phar/phar.c

3
ext/phar/phar.c

@ -294,8 +294,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_close(entry->fp);
entry->fp = php_stream_fopen_tmpfile();
php_stream_truncate_set_size(entry->fp, 0);
entry->is_modified = 1;
phar->is_modified = 1;
/* reset file size */

Loading…
Cancel
Save