Skip to content

Missing React\Stream\Stream in 0.8.8 version #147

@SomeDevSpace

Description

@SomeDevSpace

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 {

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy