felipe Tue Jan 20 15:41:24 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/zlib zlib_fopen_wrapper.c Log: - MFH: 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.46.2.1.2.4.2.2&r2=1.46.2.1.2.4.2.3&diff_format=u Index: php-src/ext/zlib/zlib_fopen_wrapper.c diff -u php-src/ext/zlib/zlib_fopen_wrapper.c:1.46.2.1.2.4.2.2 php-src/ext/zlib/zlib_fopen_wrapper.c:1.46.2.1.2.4.2.3 --- php-src/ext/zlib/zlib_fopen_wrapper.c:1.46.2.1.2.4.2.2 Wed Dec 31 11:15:47 2008 +++ php-src/ext/zlib/zlib_fopen_wrapper.c Tue Jan 20 15:41:23 2009 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zlib_fopen_wrapper.c,v 1.46.2.1.2.4.2.2 2008/12/31 11:15:47 sebastian Exp $ */ +/* $Id: zlib_fopen_wrapper.c,v 1.46.2.1.2.4.2.3 2009/01/20 15:41:23 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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php