Closed harikt closed 7 years ago
Have you tried a composer install
before running the examples? This should install all dependencies including react/event-loop
.
@jsor Hm... Interesting. That was actually an error in my part. The query.php was using '../' , but I was trying something like below.
mkdir dns
cd dns
composer require react/whois
wget https://raw.githubusercontent.com/reactphp/whois/master/examples/query.php
php query.php
Closing for this is resolved. Sorry for the hassle.
Interestingly there is a loop going on
Warning: stream_select(): No stream arrays were passed in /home/hari/experiments/php/dns/vendor/react/event-loop/React/EventLoop/StreamSelectLoop.php on line 141
PHP Warning: stream_select(): supplied argument is not a valid stream resource in /home/hari/experiments/php/dns/vendor/react/event-loop/React/EventLoop/StreamSelectLoop.php on line 141
Warning: stream_select(): supplied argument is not a valid stream resource in /home/hari/experiments/php/dns/vendor/react/event-loop/React/EventLoop/StreamSelectLoop.php on line 141
PHP Warning: stream_select(): supplied argument is not a valid stream resource in /home/hari/experiments/php/dns/vendor/react/event-loop/React/EventLoop/StreamSelectLoop.php on line 141
Any idea about it ?
This is probably better suited for an issue over at reactphp/event-loop. Be sure to include more context, ideally a reproducible test case.
The whois component hasn't been updated in a while. It actually uses the React\Socket\Connection
class (https://github.com/reactphp/whois/blob/master/src/React/Whois/ConnectionFactory.php#L20) which is actually not supported (https://github.com/reactphp/socket/pull/13) and may result in the above error.
I guess this component could use an update :+1:
Hi,
I was trying the example : https://github.com/reactphp/whois/blob/master/examples/query.php after installing
react/whois
After trying to install
react/event-loop
it looks dependencies cannot be resolved.