fmk Sat Apr 29 14:38:35 2006 UTC Modified files: /php-src/ext/zlib zlib.c Log: fix build. ZSTR() must be applied to the buf argument of php_stream macros http://cvs.php.net/viewcvs.cgi/php-src/ext/zlib/zlib.c?r1=1.192&r2=1.193&diff_format=u Index: php-src/ext/zlib/zlib.c diff -u php-src/ext/zlib/zlib.c:1.192 php-src/ext/zlib/zlib.c:1.193 --- php-src/ext/zlib/zlib.c:1.192 Wed Mar 8 14:41:45 2006 +++ php-src/ext/zlib/zlib.c Sat Apr 29 14:38:35 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zlib.c,v 1.192 2006/03/08 14:41:45 iliaa Exp $ */ +/* $Id: zlib.c,v 1.193 2006/04/29 14:38:35 fmk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -305,7 +305,7 @@ /* Now loop through the file and do the magic quotes thing if needed */ memset(buf,0,sizeof(buf)); - while (php_stream_gets(stream, buf, sizeof(buf) - 1) != NULL) { + while (php_stream_gets(stream, ZSTR(buf), sizeof(buf) - 1) != NULL) { add_index_string(return_value, i++, buf, 1); } php_stream_close(stream);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php