Hi there;
I've been with this problem almost all night.
Let me explain my current situation: I'm trying to set PHP-RQL using XAMPP (7.1.1-0) @ Ubuntu 16.04(.4) using PHP 7(.0.15) (cli). I've installed Composer (1.3.2 2017-01-27) and PHPUnit (6.0.8).
I tried set up the port 28015 with this command:
sudo nc -l 28015
I guess that work as expected; that port does nothing until I go to the directory where I've all the .ZIP content of the MASTER branch, this dir is: /opt/lampp/htdocs/rql and execute the following command:
composer test
Then the Terminal where I have the nc command throws something like this:
Maybe you should have a running rethinkdb server installed on the host where you're running the tests.
The errors are trigerred regarding a faulty connection to a server.
Hi there; I've been with this problem almost all night.
Let me explain my current situation: I'm trying to set PHP-RQL using XAMPP (7.1.1-0) @ Ubuntu 16.04(.4) using PHP 7(.0.15) (cli). I've installed Composer (1.3.2 2017-01-27) and PHPUnit (6.0.8).
I tried set up the port 28015 with this command:
sudo nc -l 28015
I guess that work as expected; that port does nothing until I go to the directory where I've all the .ZIP content of the MASTER branch, this dir is:
/opt/lampp/htdocs/rql
and execute the following command:composer test
Then the Terminal where I have the
nc
command throws something like this:ý�4{"protocol_version":0,"authentication_method":"SCRAM-SHA-256","authentication":"n,,n=admin,r=PPTNpWBA1a166N4lZm9\/DoXx"}
Then the
composer test
Terminal outputs this:[AND THEN ANOTHER HUNDREDS OF "stream_socket_client(): unable to connect to tcp://127.0.0.1:28015 (Connection refused)"]
If I execute
netstat -atn
I can see this:until the
tests/phpunit.sh
file is executed (and throw all those errors), then this disappears:and only have this remaining:
Changing the line 459 of
rdb/Connection.php
to this:throw new RqlDriverError("Unable to connect: " . $errstr." Host: ".$this->host." Port: ".$this->port." Errno: ".$errno);
I get this error after run
composer test
:and
http://localhost/rql/tests/TestCase.php
shows this:What am I doing wrong? Maybe I do need to install something else? Maybe PHP 7 is not supported yet?