void destroySWFBlock(SWFBlock block);
#endif
-static const zend_function_entry ming_functions[] = {
+static zend_function_entry ming_functions[] = {
PHP_FALIAS(ming_setcubicthreshold, ming_setCubicThreshold, NULL)
PHP_FALIAS(ming_setscale, ming_setScale, NULL)
PHP_FALIAS(ming_useswfversion, ming_useSWFVersion, NULL)
SWFBlur blur;
int ret;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddd", &blurX, &blurY, &passes) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddl", &blurX, &blurY, &passes) == FAILURE) {
return;
}
case 0:
stream = newSWFVideoStream();
break;
+ default: // warn
+ return;
}
if(stream) {
PHP_METHOD(swfmovie, saveToFile)
{
zval *x;
- long zlimit = 0;
int limit = -1;
#if !defined(HAVE_NEW_MING)
int oldval = INT_MIN;
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_METHOD(swfmovie, save)
{
- zval *x, *zlimit = NULL;
+ zval *x;
int limit = -1;
#if !defined(HAVE_NEW_MING)
int oldval = INT_MIN;
SWFInput input = NULL;
SWFMovieClip mc = getSprite(getThis() TSRMLS_CC);
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zdd", &zfile, &rate, &skip) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zd|d", &zfile, &rate, &skip) == FAILURE) {
return;
}