From: foobar Date: Mon, 11 Aug 2003 01:54:45 +0000 (+0000) Subject: Fix the compile warnings properly X-Git-Tag: RELEASE_0_7~735 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5184a6fb0a12569e61cabf299ffb857c12331f7;p=php Fix the compile warnings properly --- diff --git a/ext/ming/ming.c b/ext/ming/ming.c index d52b8a9ff9..3fcba272f2 100644 --- a/ext/ming/ming.c +++ b/ext/ming/ming.c @@ -1441,8 +1441,10 @@ static void phpByteOutputMethod(byte b, void *data) PHP_FUNCTION(swfmovie_output) { SWFMovie movie = getMovie(getThis() TSRMLS_CC); - #ifdef HAVE_MING_ZLIB + zval **zlimit = NULL; + int limit = -1; + if (zend_get_parameters_ex(1, &zlimit) == FAILURE) { WRONG_PARAM_COUNT; } @@ -1476,6 +1478,10 @@ static void phpStreamOutputMethod(byte b, void * data) PHP_FUNCTION(swfmovie_saveToFile) { zval **x; +#ifdef HAVE_MING_ZLIB + zval **zlimit = NULL; + int limit = -1; +#endif SWFMovie movie = getMovie(getThis() TSRMLS_CC); php_stream *what; @@ -1514,6 +1520,10 @@ PHP_FUNCTION(swfmovie_saveToFile) PHP_FUNCTION(swfmovie_save) { zval **x; +#ifdef HAVE_MING_ZLIB + zval **zlimit = NULL; + int limit = -1; +#endif long retval; php_stream *stream;