]> granicus.if.org Git - php/commitdiff
Fix the compile warnings properly
authorfoobar <sniper@php.net>
Mon, 11 Aug 2003 01:54:45 +0000 (01:54 +0000)
committerfoobar <sniper@php.net>
Mon, 11 Aug 2003 01:54:45 +0000 (01:54 +0000)
ext/ming/ming.c

index d52b8a9ff935b42c236fbb99c74de14b35b0b359..3fcba272f2a6512084350ec93806d3c060302654 100644 (file)
@@ -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;