php-event-extension error

Issue #42 on hold
Anonymous created an issue

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 (3)

  1. Ruslan Osmanov 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 symbol php_sockets_le_socket which is defined in sockets extension. So you should either build PHP with sockets (configure with --enable-sockets option), or disable sockets support in the event 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.

  2. Log in to comment