cvs: php4(PHP_4_3) /ext/zlib zlib_fopen_wrapper.c

From: Date: Tue, 19 Nov 2002 21:11:04 +0000
Subject: cvs: php4(PHP_4_3) /ext/zlib zlib_fopen_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16461@lists.php.net to get a copy of this message
wez Tue Nov 19 16:11:04 2002 EDT Modified files: (Branch: PHP_4_3) /php4/ext/zlib zlib_fopen_wrapper.c Log: Be pedantic with the return value Index: php4/ext/zlib/zlib_fopen_wrapper.c diff -u php4/ext/zlib/zlib_fopen_wrapper.c:1.33.2.2 php4/ext/zlib/zlib_fopen_wrapper.c:1.33.2.3 --- php4/ext/zlib/zlib_fopen_wrapper.c:1.33.2.2 Tue Nov 19 15:04:15 2002 +++ php4/ext/zlib/zlib_fopen_wrapper.c Tue Nov 19 16:11:03 2002 @@ -16,7 +16,7 @@ | Hartmut Holzgraefe <hartmut@six.de> | +----------------------------------------------------------------------+ */ -/* $Id: zlib_fopen_wrapper.c,v 1.33.2.2 2002/11/19 20:04:15 wez Exp $ */ +/* $Id: zlib_fopen_wrapper.c,v 1.33.2.3 2002/11/19 21:11:03 wez Exp $ */ #define IS_EXT_MODULE #define _GNU_SOURCE @@ -59,7 +59,7 @@ ret = gzseek(self->gz_file, offset, whence); *newoffs = gztell(self->gz_file); - return ret; + return ret < 0 ? -1 : 0; } static int php_gziop_close(php_stream *stream, int close_handle TSRMLS_DC)

« previous php.cvs (#16461) next »