- edited description
php-event-extension error
i use pecl install event to install it,but when i start php-fpm,show this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/event.so' - /usr/lib64/php/modules/event.so: undefined symbol: php_sockets_le_socket in Unknown on line 0
my env is php7.1.5
Comments (4)
-
repo owner -
repo owner PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/event.so'
The warning indicates that
event
extension failed to load because of undefined symbolphp_sockets_le_socket
which is defined insockets
extension. So you should either build PHP withsockets
(configure with--enable-sockets
option), or disable sockets support in theevent
extension configuration during installation phase. The installer should ask you if you want to enable sockets support:sudo pecl install event ... Enable sockets support in Event: no
However, the extension is not designed for SAPIs other than CLI, even if you manage to launch it under PHP-FPM, for example. The primary goal of event is maintaining long-term asynchronous processes of back ends mainly focused on networking such as chat servers, for instance.
-
repo owner - changed status to on hold
-
repo owner - changed status to closed
- Log in to comment