mgdm / Mosquitto-PHP

A wrapper for the Eclipse Mosquitto™ MQTT client library for PHP.
BSD 3-Clause "New" or "Revised" License
535 stars 147 forks source link

Is php8.2 supported? #132

Open maclechan opened 2 weeks ago

maclechan commented 2 weeks ago

/bin/sh /Users/maclechan/website/Mosquitto-PHP/libtool --tag=CC --mode=compile cc -I. -I/Users/maclechan/website/Mosquitto-PHP -I/Users/maclechan/website/Mosquitto-PHP/include -I/Users/maclechan/website/Mosquitto-PHP/main -I/Users/maclechan/website/Mosquitto-PHP -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/main -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/TSRM -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/Zend -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/ext -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /Users/maclechan/website/Mosquitto-PHP/mosquitto.c -o mosquitto.lo -MMD -MF mosquitto.dep -MT mosquitto.lo mkdir .libs cc -I. -I/Users/maclechan/website/Mosquitto-PHP -I/Users/maclechan/website/Mosquitto-PHP/include -I/Users/maclechan/website/Mosquitto-PHP/main -I/Users/maclechan/website/Mosquitto-PHP -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/main -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/TSRM -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/Zend -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/ext -I/opt/homebrew/Cellar/php@8.2/8.2.25/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /Users/maclechan/website/Mosquitto-PHP/mosquitto.c -MMD -MF mosquitto.dep -MT mosquitto.lo -fno-common -DPIC -o .libs/mosquitto.o /Users/maclechan/website/Mosquitto-PHP/mosquitto.c:892:6: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion] ret = strerror_r(err, buf, 256); ^ ~~~~~ 1 error generated. make: *** [mosquitto.lo] Error 1

macos

ryco-dev commented 2 weeks ago

Are you using the php8 branch to build? In my Linux environment, I've successfully built it with PHP versions 8.1, 8.2, 8.3, and 8.4.

mgdm commented 2 weeks ago

I intend to move the copy the master branch to another one for older PHPs and merge that php8 branch, but I haven't quite got around to it yet. Then I'll remove anything that's different for PHP 5 and 7. Maybe I'll get into doing that this weekend.

maclechan commented 1 week ago

Are you using the php8 branch to build? In my Linux environment, I've successfully built it with PHP versions 8.1, 8.2, 8.3, and 8.4.

Yes. In my Macos(14.6) environment,I can't compile Mosquitto-php,and php verison is PHP 8.2.25.