]> granicus.if.org Git - php/commitdiff
MFH: fix compile warnings about unused variables
authorfoobar <sniper@php.net>
Mon, 11 Aug 2003 01:55:14 +0000 (01:55 +0000)
committerfoobar <sniper@php.net>
Mon, 11 Aug 2003 01:55:14 +0000 (01:55 +0000)
ext/ming/ming.c

index c0dafd2cb15ee4bc5802357344c4ad7275097135..b678fee587578420b664f85ef7c5560a281c8d90 100644 (file)
@@ -1440,11 +1440,11 @@ 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;
-       SWFMovie movie = getMovie(getThis() TSRMLS_CC);
 
-#ifdef HAVE_MING_ZLIB
        if (zend_get_parameters_ex(1, &zlimit) == FAILURE) {
                WRONG_PARAM_COUNT;
        }
@@ -1478,8 +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;
 
@@ -1517,8 +1519,11 @@ PHP_FUNCTION(swfmovie_saveToFile)
   Saves the movie. 'where' can be stream and the movie will be saved there otherwise it is treated as string and written in file with that name */
 PHP_FUNCTION(swfmovie_save)
 {
-       zval **x, **zlimit = NULL;
+       zval **x;
+#ifdef HAVE_MING_ZLIB
+       zval **zlimit = NULL;
        int limit = -1;
+#endif
        long retval;
        php_stream *stream;