cvs: php-src /ext/zlib zlib_fopen_wrapper.c

From: Date: Tue, 20 Jan 2009 15:41:05 +0000
Subject: cvs: php-src /ext/zlib zlib_fopen_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-55794@lists.php.net to get a copy of this message
felipe Tue Jan 20 15:41:05 2009 UTC Modified files: /php-src/ext/zlib zlib_fopen_wrapper.c Log: - Fixed bug #47152 (gzseek/fseek using SEEK_END produces strange results) http://cvs.php.net/viewvc.cgi/php-src/ext/zlib/zlib_fopen_wrapper.c?r1=1.52&r2=1.53&diff_format=u Index: php-src/ext/zlib/zlib_fopen_wrapper.c diff -u php-src/ext/zlib/zlib_fopen_wrapper.c:1.52 php-src/ext/zlib/zlib_fopen_wrapper.c:1.53 --- php-src/ext/zlib/zlib_fopen_wrapper.c:1.52 Wed Dec 31 11:12:38 2008 +++ php-src/ext/zlib/zlib_fopen_wrapper.c Tue Jan 20 15:41:04 2009 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zlib_fopen_wrapper.c,v 1.52 2008/12/31 11:12:38 sebastian Exp $ */ +/* $Id: zlib_fopen_wrapper.c,v 1.53 2009/01/20 15:41:04 felipe Exp $ */ #define _GNU_SOURCE @@ -60,6 +60,10 @@ assert(self != NULL); + if (whence == SEEK_END) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SEEK_END is not supported"); + return -1; + } *newoffs = gzseek(self->gz_file, offset, whence); return (*newoffs < 0) ? -1 : 0;

« previous php.cvs (#55794) next »