Skip to content

Commit 03c13dd

Browse files
author
Ilia Alshanetsky
committed
MFB: Fixed compiler warnings.
1 parent 23de434 commit 03c13dd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ext/zip/zip_stream.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include "php_streams.h"
1212
#include "ext/standard/file.h"
13+
#include "ext/standard/php_string.h"
1314
#include "fopen_wrappers.h"
1415

1516
#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
4748
/* {{{ php_zip_ops_write */
4849
static size_t php_zip_ops_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC)
4950
{
50-
STREAM_DATA_FROM_STREAM();
51-
5251
if (!stream) {
5352
return 0;
5453
}
@@ -74,9 +73,6 @@ static int php_zip_ops_close(php_stream *stream, int close_handle TSRMLS_DC)
7473
/* {{{ php_zip_ops_flush */
7574
static int php_zip_ops_flush(php_stream *stream TSRMLS_DC)
7675
{
77-
78-
STREAM_DATA_FROM_STREAM();
79-
8076
if (!stream) {
8177
return 0;
8278
}

0 commit comments

Comments
 (0)