@ requinix:Thanks for the quick reply. I too have also tried that version. This is the output of that build error:
[root@server ffmpeg-php] phpize
[root@server ffmpeg-php] ./configure
[ALL GOOD]
[root@server ffmpeg-php] make
I can't seem to capture the whole error , but this is the output i'm able to copy and paste:
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:791:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getPixelFormat':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:825:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:825:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:825:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:825:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:834:51: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
RETURN_STRINGL((char *)fmt, strlen(fmt), 1);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:834:9: error: 'RETURN_STRINGL' undeclared (first use in this function)
RETURN_STRINGL((char *)fmt, strlen(fmt), 1);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getBitRate':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:857:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:857:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:857:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:857:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_hasAudio':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:870:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:870:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:870:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:870:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_hasVideo':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:883:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:883:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:883:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:883:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getVideoCodec':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:949:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:949:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:949:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:949:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:954:57: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
RETURN_STRINGL(codec_name, strlen(codec_name), 1);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:954:9: error: 'RETURN_STRINGL' undeclared (first use in this function)
RETURN_STRINGL(codec_name, strlen(codec_name), 1);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioCodec':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:969:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:969:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:969:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:969:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:974:57: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
RETURN_STRINGL(codec_name, strlen(codec_name), 1);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:974:9: error: 'RETURN_STRINGL' undeclared (first use in this function)
RETURN_STRINGL(codec_name, strlen(codec_name), 1);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getVideoStreamId':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:989:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:989:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:989:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:989:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioStreamId':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1011:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1011:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1011:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1011:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioChannels':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1049:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1049:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1049:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1049:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioSampleRate':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1085:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1085:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1085:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1085:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioBitRate':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1121:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1121:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1121:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1121:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getVideoBitRate':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1141:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1141:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1141:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1141:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function '_php_read_av_frame':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1171:5: warning: 'avcodec_alloc_frame' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3422) [-Wdeprecated-declarations]
frame = avcodec_alloc_frame();
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function '_php_get_ff_frame':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1294:9: warning: 'avcodec_alloc_frame' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3422) [-Wdeprecated-declarations]
ff_frame->av_frame = avcodec_alloc_frame();
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getNextKeyFrame':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1320:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1320:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1320:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1320:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getFrame':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1336:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1336:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1336:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1336:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getPixelAspectRatio':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1401:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1401:5: error: too many arguments to function 'zend_hash_find'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
from /opt/remi/php71/root/usr/include/php/main/php.h:35,
from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1401:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1401:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
GET_MOVIE_RESOURCE(ffmovie_ctx);
^
make: *** [ffmpeg_movie.lo] Error 1