summaryrefslogtreecommitdiff
path: root/ext/zlib/zlib.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.c
parent902c17e05a6171381fe537e5bdb981b035d46ed0 (diff)
downloadphp-git-a388ab620548907de9e4304d34f0ee76f54ee3c5.tar.gz
Fix error messages.
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r--ext/zlib/zlib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 142c0966f7..312178e180 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -295,8 +295,7 @@ PHP_FUNCTION(gzfile)
/* using a stream here is a bit more efficient (resource wise) than php_gzopen_wrapper */
stream = php_stream_gzopen(NULL, Z_STRVAL_PP(filename), "rb", use_include_path|ENFORCE_SAFE_MODE|REPORT_ERRORS, NULL, NULL STREAMS_CC TSRMLS_CC);
if (stream == NULL) {
- /* Error reporting is already done by stream code
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "gzFile(\"%s\") - %s", Z_STRVAL_PP(filename), strerror(errno)); */
+ /* Error reporting is already done by stream code */
RETURN_FALSE;
}