pecl-networking-gearman icon indicating copy to clipboard operation
pecl-networking-gearman copied to clipboard

Fatal symbol lookup error on PHP 8.1+: gearman.so calling deprecated ZVAL_NEW_ARR() macro.

Open trenshaw opened this issue 2 years ago • 2 comments

The ZVAL_NEW_ARR() macro has been removed as of PHP 8.1. It is advised to use array_init() or ZVAL_ARR with zend_new_array() instead.

Refer link to internal API changes: https://github.com/php/php-src/blob/PHP-8.1/UPGRADING.INTERNALS

trenshaw avatar Sep 15 '22 00:09 trenshaw

I have version 2.1.0 installed via PECL on Ubuntu 22.04.1. This appears to have been removed already in commit 15 mo. ago by @remicollet was this change pulled into 2.1.0?

trenshaw avatar Sep 15 '22 00:09 trenshaw

I can confirm the 'master' branch currently passes 'make test' and installs against libgearman v1.1.19 and PHP 8.1.2 (the default packages in Ubuntu 22.04). Perhaps 'master' could now be tagged a release candidate for 2.1.1? There will be many other Ubuntu 22.04 users facing the same issue with 2.1.0.

trenshaw avatar Sep 21 '22 00:09 trenshaw

@rlerdorf I see that the issue is already fixed in master, could you please do a new release? Thanks! 🙏

andrewmy avatar Mar 20 '23 13:03 andrewmy

@rlerdorf I see that the issue is already fixed in master, could you please do a new release? Thanks! pray

Any news about a new release with PHP 8.2 support?

igordeveloper avatar May 19 '23 18:05 igordeveloper