From: Frank M. Kromann Date: Sat, 29 Apr 2006 14:38:35 +0000 (+0000) Subject: fix build. ZSTR() must be applied to the buf argument of php_stream macros X-Git-Tag: BEFORE_NEW_OUTPUT_API~347 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c307a8a9e7874fb532fdd455e55a9aab3fe4ec9;p=php fix build. ZSTR() must be applied to the buf argument of php_stream macros --- diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 0baf5e1961..cdeab4263c 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -305,7 +305,7 @@ PHP_FUNCTION(gzfile) /* 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);