remicollet / remirepo

Issue tracker for

Home Page:https://rpms.remirepo.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sockets.so is missing

dxops opened this issue · comments

Hello Remi,

starting from https://git.remirepo.net/cgit/rpms/php/php83.git/commit/?id=baa129a73d922f1415b03bed2e9284d963279e28 we don't have sockets.so bundled to RPM anymore

PHP 8.3 rpm states that
Provides:
php82-php-sockets -
php82-php-sockets(x86-64)

but actually it's not

$ php -dextension=sockets.so php -v

PHP Warning:  PHP Startup: Unable to load dynamic library 'sockets.so' (tried: /opt/remi/php83/root/usr/lib64/php/modules/sockets.so (/opt/remi/php83/root/usr/lib64/php/modules/sockets.so: cannot open shared object file: No such file or directory), /opt/remi/php83/root/usr/lib64/php/modules/sockets.so.so (/opt/remi/php83/root/usr/lib64/php/modules/sockets.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

PHP 8.2 is ok

$ wget https://rpms.remirepo.net/enterprise/8/remi/x86_64/php82-php-common-8.2.15-1.el8.remi.x86_64.rpm
$ rpm -qplv php82-php-common-8.2.15-1.el8.remi.x86_64.rpm | grep sockets.so

-rwxr-xr-x    1 root     root                   104728 січ 16 15:15 /opt/remi/php82/root/usr/lib64/php/modules/sockets.so

PHP 8.3 is not

$ wget https://rpms.remirepo.net/enterprise/8/remi/x86_64/php83-php-common-8.3.2-1.el8.remi.x86_64.rpm
$ rpm -qplv php83-php-common-8.3.2-1.el8.remi.x86_64.rpm | grep socket

How can we bring it back for PHP 8.3?

Thanks you!

As explained in the commit, sockets is now build statically
so sockets.so doesn't exists anymore
but extension is there

$ php83 -v
PHP 8.3.2 (cli) (built: Jan 16 2024 13:46:41) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.3.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.2, Copyright (c), by Zend Technologies

$ php83 -n  --modules | grep ^so
sockets

Makes sense, idk how I missed that sockets are still in the 'php -m' list, thank you!