You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command pecl install Mosquitto-alpha fails on Ubunutu 20 with php 8. Are php 8 and ubuntu 20 supported?
Here's the error I get:
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:118:95: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
118 | typedef int (*php_mosquitto_write_t)(mosquitto_message_object *mosquitto_object, zval *newval TSRMLS_DC);
| ^~~~~~~~~
On 25 Jan 2021, at 11:42, Giorgio Pagnoni ***@***.***> wrote:
The command pecl install Mosquitto-alpha fails on Ubunutu 20 with php 8. Are php 8 and ubuntu 20 supported?
Here's the error I get:
In file included from /tmp/pear/temp/Mosquitto/mosquitto.c:12:
/tmp/pear/temp/Mosquitto/php_mosquitto.h:118:95: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
118 | typedef int (*php_mosquitto_write_t)(mosquitto_message_object *mosquitto_object, zval *newval TSRMLS_DC);
| ^~~~~~~~~
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Reacted by Christian Taylor, Giorgio Pagnoni, Sergy and Jeroen Desloovere
it would be great if you could check it out, and see if it works for your use. I can look into doing an actual release but any feedback I can get from trying that out will be great.
I use this library for my pet project - smart home. I can check this way. I will listen and push mqtt messages on docker image with php8.
Just describe what needs to be done to install a new library on php 8?
it would be great if you could check it out, and see if it works for your use. I can look into doing an actual release but any feedback I can get from trying that out will be great.
Activity
mgdm commentedon Jan 25, 2021
giorgiopagnoni commentedon Jan 25, 2021
Thank you for your quick feedback!
alesinicio commentedon Mar 29, 2021
Hi! Is there any chance that there will be an update for PHP8 compatibility in the foreseeable future? Can we help to make it happen, somehow?
decole commentedon Feb 14, 2022
Tell me will there be a new version for php 8 in the foreseeable future. Can the community help you somehow?
mgdm commentedon Feb 14, 2022
There is a branch for it: https://github.com/mgdm/Mosquitto-PHP/tree/php8
it would be great if you could check it out, and see if it works for your use. I can look into doing an actual release but any feedback I can get from trying that out will be great.
decole commentedon Feb 14, 2022
I use this library for my pet project - smart home. I can check this way. I will listen and push mqtt messages on docker image with php8.
Just describe what needs to be done to install a new library on php 8?
decole commentedon Feb 15, 2022
how install https://github.com/mgdm/Mosquitto-PHP/tree/php8 on php 8 server this mosquitto lib verison?
decole commentedon Feb 17, 2022
People help how to build this module and put it in php 8
decole commentedon Mar 1, 2022
Using docker image php:8.1-fpm.
execute:
Error:
sophiejacquin commentedon Oct 3, 2023
hello, I am getting the exact same error on debian bookworm with php8.2, is there a fix?
ryco-dev commentedon Oct 3, 2023
I have a forked version with PHP 8 support.
https://github.com/nismoryco/Mosquitto-PHP
sophiejacquin commentedon Oct 3, 2023
this works thank you
jeroendesloovere commentedon Dec 21, 2023
I have the same error while trying to build my docker container.
Dockerfile:
How can I fix it?
I don't understand how I can implement @nismoryco his forked version?
jeroendesloovere commentedon Dec 21, 2023
@mgdm any news about the fix?
ryco-dev commentedon Dec 21, 2023
I don't use Docker so I can't help with that but I can say that my PR has been merged into the PHP8 branch here.