[x] I have looked at the list of the existing issues (including closed issues) and searched if my issue has been already reported
[x] I have tried to resolve the issue myself and will describe what I did in clear and consise manner
Describe the bug
When installing the php8.3-ds package on a PHP 8.3 system, the install works fine. However, when calling the php CLI binary, you get the error
PHP Warning: PHP Startup: Unable to load dynamic library 'ds.so' (tried: /usr/lib/php/20230831/ds.so (/usr/lib/php/20230831/ds.so: undefined symbol: fast_add_function), /usr/lib/php/20230831/ds.so.so (/usr/lib/php/20230831/ds.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
What steps did you take to resolve issue yourself before reporting it here
Looking up why/when the fast_add_function was removed, and the patch as a possible fix. Unfortunately, it seems impossible to fix this without recompiling the extension with the patch.
Expected behavior
PHP runs without startup errors and displays ds support => enabled
Distribution (please complete the following information):
OS: Debian 11
Architecture: amd64
Repository: packages.sury.org
Package(s) (please complete the following information):
Frequently asked questions
Describe the bug When installing the
php8.3-ds
package on a PHP 8.3 system, the install works fine. However, when calling thephp
CLI binary, you get the errorTo Reproduce
Your understanding of what is happening It seems like the
fast_add_function
was removed from the PHP source (https://github.com/php/php-src/commit/3b06618813fe0979850eaa1f4bed426edb5b3123). Thephp-ds
extension probably needs the patch from https://git.remirepo.net/cgit/rpms/php/pecl/php-pecl-ds.git/diff/0001-fast_add_function-removed-in-PHP-8.3-use-add_functio.patch?id=d1cbd173944bbba55b92de019b01760746a67f78 in order to be compatible with PHP 8.3.What steps did you take to resolve issue yourself before reporting it here Looking up why/when the
fast_add_function
was removed, and the patch as a possible fix. Unfortunately, it seems impossible to fix this without recompiling the extension with the patch.Expected behavior PHP runs without startup errors and displays
ds support => enabled
Distribution (please complete the following information):
Package(s) (please complete the following information):
Additional context