diff options
Diffstat (limited to 'ext/ming/ming.c')
| -rw-r--r-- | ext/ming/ming.c | 12 |
1 files changed, 11 insertions, 1 deletions
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; |
