From: Ilia Alshanetsky Date: Thu, 27 Jul 2006 00:36:55 +0000 (+0000) Subject: Fixed compiler warnings. X-Git-Tag: php-5.2.0RC2~191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0ea656129d47833ae22585a1cb917d6e6137b5b;p=php Fixed compiler warnings. --- diff --git a/ext/zip/zip_stream.c b/ext/zip/zip_stream.c index 021330b3d9..dd5374edd8 100644 --- a/ext/zip/zip_stream.c +++ b/ext/zip/zip_stream.c @@ -10,6 +10,7 @@ #include "php_streams.h" #include "ext/standard/file.h" +#include "ext/standard/php_string.h" #include "fopen_wrappers.h" #include "ext/standard/url.h" @@ -47,8 +48,6 @@ static size_t php_zip_ops_read(php_stream *stream, char *buf, size_t count TSRML /* {{{ php_zip_ops_write */ static size_t php_zip_ops_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) { - STREAM_DATA_FROM_STREAM(); - if (!stream) { return 0; } @@ -74,9 +73,6 @@ static int php_zip_ops_close(php_stream *stream, int close_handle TSRMLS_DC) /* {{{ php_zip_ops_flush */ static int php_zip_ops_flush(php_stream *stream TSRMLS_DC) { - - STREAM_DATA_FROM_STREAM(); - if (!stream) { return 0; }