summaryrefslogtreecommitdiff
path: root/ext/zlib/zlib_fopen_wrapper.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-08-22 17:37:46 +0000
committerWez Furlong <wez@php.net>2002-08-22 17:37:46 +0000
commita388ab620548907de9e4304d34f0ee76f54ee3c5 (patch)
tree65ac65ba0fceb82e6ea3e6fcf64343f89d5f4d6c /ext/zlib/zlib_fopen_wrapper.c
parent902c17e05a6171381fe537e5bdb981b035d46ed0 (diff)
downloadphp-git-a388ab620548907de9e4304d34f0ee76f54ee3c5.tar.gz
Fix error messages.
Diffstat (limited to 'ext/zlib/zlib_fopen_wrapper.c')
-rw-r--r--ext/zlib/zlib_fopen_wrapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c
index 034311b809..d00e6756fe 100644
--- a/ext/zlib/zlib_fopen_wrapper.c
+++ b/ext/zlib/zlib_fopen_wrapper.c
@@ -118,6 +118,8 @@ php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, char *path, char *mod
return stream;
gzclose(self->gz_file);
}
+ if (options & REPORT_ERRORS)
+ php_errordocref(NULL TSRMLS_CC, E_WARNING, "gzopen failed");
}
}
if (stream)