Mosquitto-PHP: Error on Ubuntu 20 with PHP8
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);
| ^~~~~~~~~
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 15 (2 by maintainers)
It’s not working yet. I’m working on it in a branch but haven’t finished it off yet.
Using docker image php:8.1-fpm. execute:
Error:
I have a forked version with PHP 8 support.
https://github.com/nismoryco/Mosquitto-PHP