Websocket , Zmq and PHP 7.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Ceonello
    commented on 's reply
    Thank you, we are going to try with php8. I'll keep you in touch.

  • esforim
    commented on 's reply
    I tried searching for some solution but look like you are on your own at this stage. Can't think of any other idea aside as perhaps trying v8.0, by shear luck it could be compatible? Or downgrade to 7.3

  • Ceonello
    commented on 's reply
    With Linux it use a file called php_zmq.so specifically compiled for Linux so it's not as easy as copying it.
    I don.t know why it's working on linux and not on windows

  • esforim
    commented on 's reply
    Why does it work on Linux and not Windows? With Linux it still use some library file call php_zmq.dll right? Will you be able to get a copy of the Linux version of php_zmq.dll and just copy it to Windows?

    Not sure if the above idea would work, I never really use Linux before.

  • Ceonello
    replied
    Originally posted by yuri
    Hi,

    Not sure about windows. But on linux it's not a problem to build for php versions > 7.2 https://github.com/espocrm/docker/bl...Dockerfile#L21

    Hi yuri, thank you for the response,
    I tried the compiled versions found on https://github.com/zeromq/php-zmq/issues/193, the 7.3 version works fine on PHP 7.3, but with the 7.4 version, on php 7.4, apache crashes with the following error:
    Parent: child process 7412 exited with status 3221225725 -- Restarting.

    i then built the latest version of php_zmq on windows by following this guide (https://blog.7in0.me/2020/03/29/buil...on-on-windows/) and the generated php_zmq.dll, on PHP 7.4, makes apache crash with the same error as above.

    So, there seems to be no way to make websockets works on a windows machine with php>7.3.
    If you have any suggestion they will be highly appreciated.

    Leave a comment:


  • yuri
    replied
    Hi,

    Not sure about windows. But on linux it's not a problem to build for php versions > 7.2 https://github.com/espocrm/docker/bl...Dockerfile#L21

    Leave a comment:


  • Ceonello
    started a topic Websocket , Zmq and PHP 7.4

    Websocket , Zmq and PHP 7.4

    Hi,
    I am trying to enable websocket functionalities on espocrm on a windows10 machine with Apache 2.4 and PHP 7.4.
    The problem is that there is no php_zmq dll available for PHP 7.4.
    As you can see from http://pecl.php.net/package/zmq/1.1.3 , The latest php-zmq.dll available is from 2016 and is not compatible with php versions > 7.2 (https://github.com/zeromq/php-zmq/issues/193).
    How can i enable websocket on a server with a version of Php >7.2? Are Espocrm Websockets supported only on PHP versions < 7.3?

    Thank you

Working...