oerdnj / deb.sury.org

Public bugreports for anything ppa:ondrej/*
821 stars 25 forks source link

php-ds for PHP8.3 does not load (undefined symbol: fast_add_function) #2063

Closed aboks closed 7 months ago

aboks commented 9 months ago

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 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

To Reproduce

apt install php8.3 php8.3-ds
php -i

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). The php-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):

php8.3-ds:
  Installed: 1.4.0-5+0~20231125.28+debian11~1.gbp690767
  Candidate: 1.4.0-5+0~20231125.28+debian11~1.gbp690767
  Version table:
 *** 1.4.0-5+0~20231125.28+debian11~1.gbp690767 500
        500 http://HTTPS///packages.sury.org/php bullseye/main amd64 Packages
        100 /var/lib/dpkg/status

Additional context

samuelshenrique commented 9 months ago

I had same problem. Did you manage to solve it?

AlexanderGH commented 9 months ago

This is now fixed in 1.5.0: https://github.com/php-ds/ext-ds/issues/199

Any chance we could get a new build up on deb.sury.org?

oerdnj commented 7 months ago

Updated to 1.5.0

bruno-buiret commented 7 months ago

Thank you!