-
-
Notifications
You must be signed in to change notification settings - Fork 158
Closed
Labels
Milestone
Description
It looks like there are some wrong dependencies to reactphp/stream package when fetching using composer to install reactphp/socket.
How to reproduce:
composer require "react/socket" "^0.8.8"
$ cat vendor/react/socket/src/TcpConnector.php| grep "use React\\\\Stream"
use React\Stream\Stream;
$ cat vendor/react/stream/src/Socket.php
cat: vendor/react/stream/src/Socket.php: No such file or directory
When trying to run code with TcpConnector:
PHP Warning: require(xxx/.../React/Stream/Stream.php): failed to open stream: No such file or directory in autoload.php on line 26
And it's caused by that line:
vendor/react/dns/src/Query/Executor.php:144
if (!class_exists('React\Stream\Stream')) {
// prefer DuplexResourceStream as of react/stream v0.7.0
$conn = new DuplexResourceStream($fd, $this->loop, -1);
} else {