Closed TCB13 closed 5 years ago
I also tired to install libuv
from here http://downloads.datastax.com/cpp-driver/ubuntu/16.04/dependencies/libuv/v1.11.0/ and got the same result.
Also got the same result with compilation / installing from source with:
wget http://dist.libuv.org/dist/v1.8.0/libuv-v1.8.0.tar.gz
tar xzf libuv-v1.8.0.tar.gz
cd libuv-v1.8.0/
sh autogen.sh
./configure
make install
I guess the issues isn't related to libuv
at all.
The official instructions in the readme seem to work:
git clone https://github.com/bwoebi/php-uv.git
cd php-uv
phpize
./configure
make
make install
# add `extension=uv.so` to your php.ini
However when I load it into php ratchet, I get Segmentation fault
.
I need to create a new pecl release. Will do so later.
As for the segfault, can you please provide me a stacktrace / reproduce script? Thanks.
@bwoebi you can find attached a simple test. Just run composer, server.php
and then client.html
. The client will try to connect to the web socket server and it will fail with segfaultw whenever php-uv is used.
---file updated bellow---
@TCB13 ChatServerTest.php is missing in the zip?
Regarding the compile error, I have uploaded 0.2.3 to pecl.
@bwoebi oh I'm sorry, my bad. Here is an update: php-uv-crash-test-1.zip Meanwhile, thank you for the pecl.
uv_loop_new found!
new user connected: 48 Total connections: 1
new user connected: 77 Total connections: 2
I can't reproduce any crash.
@bwoebi maybe the last pecl fixes the issue? I'll test it tomorrow. Thank you.
@bwoebi just installed from pecl and it works just fine. Thank you.
I was trying to get this extension under Debian, so I did:
However the output was:
From other posts I was under the impression that the issue was my
libuv
version, however I'm not sure. Any tips? Thank you.My system: