|
43 | 43 | void destroySWFBlock(SWFBlock block);
|
44 | 44 | #endif
|
45 | 45 |
|
46 |
| -static const zend_function_entry ming_functions[] = { |
| 46 | +static zend_function_entry ming_functions[] = { |
47 | 47 | PHP_FALIAS(ming_setcubicthreshold, ming_setCubicThreshold, NULL)
|
48 | 48 | PHP_FALIAS(ming_setscale, ming_setScale, NULL)
|
49 | 49 | PHP_FALIAS(ming_useswfversion, ming_useSWFVersion, NULL)
|
@@ -2595,7 +2595,7 @@ PHP_METHOD(swfblur, __construct)
|
2595 | 2595 | SWFBlur blur;
|
2596 | 2596 | int ret;
|
2597 | 2597 |
|
2598 |
| - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddd", &blurX, &blurY, &passes) == FAILURE) { |
| 2598 | + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddl", &blurX, &blurY, &passes) == FAILURE) { |
2599 | 2599 | return;
|
2600 | 2600 | }
|
2601 | 2601 |
|
@@ -3452,6 +3452,8 @@ PHP_METHOD(swfvideostream, __construct)
|
3452 | 3452 | case 0:
|
3453 | 3453 | stream = newSWFVideoStream();
|
3454 | 3454 | break;
|
| 3455 | + default: // warn |
| 3456 | + return; |
3455 | 3457 | }
|
3456 | 3458 |
|
3457 | 3459 | if(stream) {
|
@@ -3910,7 +3912,6 @@ static void phpStreamOutputMethod(byte b, void * data)
|
3910 | 3912 | PHP_METHOD(swfmovie, saveToFile)
|
3911 | 3913 | {
|
3912 | 3914 | zval *x;
|
3913 |
| - long zlimit = 0; |
3914 | 3915 | int limit = -1;
|
3915 | 3916 | #if !defined(HAVE_NEW_MING)
|
3916 | 3917 | int oldval = INT_MIN;
|
@@ -3949,7 +3950,7 @@ PHP_METHOD(swfmovie, saveToFile)
|
3949 | 3950 | 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 */
|
3950 | 3951 | PHP_METHOD(swfmovie, save)
|
3951 | 3952 | {
|
3952 |
| - zval *x, *zlimit = NULL; |
| 3953 | + zval *x; |
3953 | 3954 | int limit = -1;
|
3954 | 3955 | #if !defined(HAVE_NEW_MING)
|
3955 | 3956 | int oldval = INT_MIN;
|
@@ -5182,7 +5183,7 @@ PHP_METHOD(swfsprite, setSoundStream)
|
5182 | 5183 | SWFInput input = NULL;
|
5183 | 5184 | SWFMovieClip mc = getSprite(getThis() TSRMLS_CC);
|
5184 | 5185 |
|
5185 |
| - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zdd", &zfile, &rate, &skip) == FAILURE) { |
| 5186 | + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zd|d", &zfile, &rate, &skip) == FAILURE) { |
5186 | 5187 | return;
|
5187 | 5188 | }
|
5188 | 5189 |
|
|
0 commit comments