summaryrefslogtreecommitdiff
path: root/ext/ming/ming.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-08-11 01:54:45 +0000
committerfoobar <sniper@php.net>2003-08-11 01:54:45 +0000
commitb5184a6fb0a12569e61cabf299ffb857c12331f7 (patch)
tree9c2a1224355bebe6e9f3c81decb4fdc57ecf2add /ext/ming/ming.c
parent530f502198a7d3141f07bd36af5c37a01ef5b87c (diff)
downloadphp-git-b5184a6fb0a12569e61cabf299ffb857c12331f7.tar.gz
Fix the compile warnings properly
Diffstat (limited to 'ext/ming/ming.c')
-rw-r--r--ext/ming/ming.c12
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;