summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/ming/ming.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/ming/ming.c b/ext/ming/ming.c
index 45bad1225b..290d998fff 100644
--- a/ext/ming/ming.c
+++ b/ext/ming/ming.c
@@ -2148,8 +2148,10 @@ PHP_METHOD(swfmovie, save)
retval = SWFMovie_output(getMovie(getThis() TSRMLS_CC), &phpStreamOutputMethod, (void *)stream);
php_stream_close(stream);
+#ifdef HAVE_MING_ZLIB
if(oldval >= -1 && oldval <=9)
Ming_setSWFCompression(oldval);
+#endif
RETURN_LONG(retval);
}