Jump to content

phpninja

New Members
  • Posts

    6
  • Joined

  • Last visited

phpninja's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. [sOLVED] Directly under your main </Directory> add this block (Top one is Everything , unless otherwise specified) and the second block is a designated sub directory with a custom PHP-FPM pass. Port 9071 = PHP71-PHP-FPM Port 9056 = RH-PHP56-PHP-FPM <LocationMatch ^(.*\.php)$> ProxyPass fcgi://127.0.0.1:9071/home/exampledomain/public_html$1 </LocationMatch> <LocationMatch ^/forum(.*\.php)$> ProxyPass fcgi://127.0.0.1:9056/home/exampledomain/public_html/forum$1 </LocationMatch>
  2. Apache2 VirtualHost Block -> ProxyPass fastcgi PHP-FPM + sub-directory w/ different ProxyPass ... how? It seems like I have tried everything that I could think of. I tried putting a sub directory Directory directive in, with a secondary Proxy Pass, with no luck. ProxyPass fcgi://127.0.0.1:9071/home/exampledomain/public_html$1 (PHP 7.1.2) ProxyPass fcgi://127.0.0.1:9056/home/exampledomain/public_html$1 (PHP 5.6) I need to use PHP 5.6 on a sub directory. Does anyone know how I can achieve this? # VIRTUAL SERVER # # TLD: exampledomain.com # # Username: exampledomain # # SSL # <VirtualHost 10.1.1.100:443> ServerName exampledomain.com ServerAlias exampledomain.com DocumentRoot /home/exampledomain/public_html ErrorLog /home/exampledomain/exampledomain.com_ssl_error_log CustomLog /home/exampledomain/exampledomain.com_ssl_access_log combined ScriptAlias /cgi-bin/ /home/exampledomain/cgi-bin/ DirectoryIndex index.html index.php index.php4 index.php5 index.htm <Directory /home/exampledomain/public_html> Options -Indexes +FollowSymlinks #allow from all #AllowOverride None Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch AllowOverride All Require all granted </Directory> <Directory /home/exampledomain/cgi-bin> #allow from all #AllowOverride None Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch AllowOverride All Require all granted </Directory> RewriteEngine on RewriteCond %{HTTP_HOST} =www.exampledomain.com RewriteRule ^(.*) https://exampledomain.com/ [R] SSLEngine on SSLCertificateFile /home/exampledomain/ssl.cert SSLCertificateKeyFile /home/exampledomain/ssl.key SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 php_value memory_limit 64M php_value suhosin.session.encrypt Off <LocationMatch ^(.*\.php)$> ProxyPass fcgi://127.0.0.1:9071/home/exampledomain/public_html$1 </LocationMatch> </VirtualHost>
  3. Yeah, that seems to be the verdict. Thanks for the reply Greetings from WA also. and awesome website... love PHP
  4. I already have the binaries installed. I was installing it for PHP Script Requirements for Joomla Extensions. (Video Scripts) *scratches head* ... It's a shame there is no PHP 7 support for ffmpeg-php.
  5. @ 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
  6. CentOS 7.3 + PHP 7.1.x REMI + ffmpeg-php MAKE ERROR - Help! I could really use some expert help here... I am using PHP 7.1.2 REMI with CentOS 7.3 I have successfully installed ffmpeg, but need to install ffmpeg-php 0.6.2 This is what happens when I compile: [root@server ffmpeg-php-0.6.2] ./configure [All Works Fine] [root@server ffmpeg-php-0.6.2] make OUTPUT ERROR: /bin/sh /usr/local/src/ffmpeg-php-0.6.2/libtool --mode=compile cc -I. -I/usr/local/src/ffmpeg-php-0.6.2 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.2/include -I/usr/local/src/ffmpeg-php-0.6.2/main -I/usr/local/src/ffmpeg-php-0.6.2 -I/opt/remi/php71/root/usr/include/php -I/opt/remi/php71/root/usr/include/php/main -I/opt/remi/php71/root/usr/include/php/TSRM -I/opt/remi/php71/root/usr/include/php/Zend -I/opt/remi/php71/root/usr/include/php/ext -I/opt/remi/php71/root/usr/include/php/ext/date/lib -I/usr/include/libavcodec/ -I/usr/include/libavformat/ -I/usr/include/libavutil/ -I/usr/include/libswscale/ -I/usr/include/libavfilter/ -I/usr/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c -o ffmpeg-php.lo libtool: compile: cc -I. -I/usr/local/src/ffmpeg-php-0.6.2 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.2/include -I/usr/local/src/ffmpeg-php-0.6.2/main -I/usr/local/src/ffmpeg-php-0.6.2 -I/opt/remi/php71/root/usr/include/php -I/opt/remi/php71/root/usr/include/php/main -I/opt/remi/php71/root/usr/include/php/TSRM -I/opt/remi/php71/root/usr/include/php/Zend -I/opt/remi/php71/root/usr/include/php/ext -I/opt/remi/php71/root/usr/include/php/ext/date/lib -I/usr/include/libavcodec/ -I/usr/include/libavformat/ -I/usr/include/libavutil/ -I/usr/include/libswscale/ -I/usr/include/libavfilter/ -I/usr/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c -fPIC -DPIC -o .libs/ffmpeg-php.o In file included from /usr/include/sys/stat.h:106:0, from /opt/remi/php71/root/usr/include/php/Zend/zend_stream.h:28, from /opt/remi/php71/root/usr/include/php/Zend/zend.h:41, from /opt/remi/php71/root/usr/include/php/main/php.h:35, from /usr/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c:40: /usr/include/bits/stat.h:91:21: error: field 'st_atim' has incomplete type struct timespec st_atim; /* Time of last access. */ ^ /usr/include/bits/stat.h:92:21: error: field 'st_mtim' has incomplete type struct timespec st_mtim; /* Time of last modification. */ ^ /usr/include/bits/stat.h:93:21: error: field 'st_ctim' has incomplete type struct timespec st_ctim; /* Time of last status change. */ ^ /usr/include/bits/stat.h:152:21: error: field 'st_atim' has incomplete type struct timespec st_atim; /* Time of last access. */ ^ /usr/include/bits/stat.h:153:21: error: field 'st_mtim' has incomplete type struct timespec st_mtim; /* Time of last modification. */ ^ /usr/include/bits/stat.h:154:21: error: field 'st_ctim' has incomplete type struct timespec st_ctim; /* Time of last status change. */ ^ In file included from /opt/remi/php71/root/usr/include/php/Zend/zend_stream.h:28:0, from /opt/remi/php71/root/usr/include/php/Zend/zend.h:41, from /opt/remi/php71/root/usr/include/php/main/php.h:35, from /usr/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c:40: /usr/include/sys/stat.h:366:31: error: array type has incomplete element type const struct timespec __times[2], ^ /usr/include/sys/stat.h:373:54: error: array type has incomplete element type extern int futimens (int __fd, const struct timespec __times[2]) __THROW; ^ In file included from /opt/remi/php71/root/usr/include/php/main/php.h:411:0, from /usr/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c:40: /opt/remi/php71/root/usr/include/php/Zend/zend_virtual_cwd.h:219:2: error: unknown type name 'time_t' time_t expires; ^ /opt/remi/php71/root/usr/include/php/Zend/zend_virtual_cwd.h:249:86: error: unknown type name 'time_t' CWD_API realpath_cache_bucket* realpath_cache_lookup(const char *path, int path_len, time_t t); ^ /usr/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c: In function 'zm_startup_ffmpeg': /usr/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c:94:5: warning: implicit declaration of function 'avcodec_init' [-Wimplicit-function-declaration] avcodec_init(); ^ make: *** [ffmpeg-php.lo] Error 1 Any idea how to resolve this? Any help would be grateful!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.