summaryrefslogtreecommitdiff
path: root/ext/phar/stream.c
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2008-08-21 05:17:28 +0000
committerGreg Beaver <cellog@php.net>2008-08-21 05:17:28 +0000
commitc3e8485971f066259672103f143ae6e3fa86f2de (patch)
tree3151be9d89afb45f93875ff6c340401625dd7dcc /ext/phar/stream.c
parent50066470cd3e1963c591d40e94f2d0a15117f596 (diff)
downloadphp-git-c3e8485971f066259672103f143ae6e3fa86f2de.tar.gz
fix bug #45792: bz2 compressed files in zip failure
Diffstat (limited to 'ext/phar/stream.c')
-rw-r--r--ext/phar/stream.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/phar/stream.c b/ext/phar/stream.c
index 229f1b99b5..b432790d65 100644
--- a/ext/phar/stream.c
+++ b/ext/phar/stream.c
@@ -307,8 +307,9 @@ idata_error:
#endif
/* check length, crc32 */
- if (!idata->internal_file->is_crc_checked && phar_postprocess_file(wrapper, options, idata, idata->internal_file->crc32, &error TSRMLS_CC) != SUCCESS) {
- /* already issued the error */
+ if (!idata->internal_file->is_crc_checked && phar_postprocess_file(idata, idata->internal_file->crc32, &error, 2 TSRMLS_CC) != SUCCESS) {
+ php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, error);
+ efree(error);
phar_entry_delref(idata TSRMLS_CC);
efree(internal_file);
return NULL;