Skip to content

PHP8: Uncaught ValueError: No stream arrays wered pased in StreamSelectLoop:: #220

@holtkamp

Description

@holtkamp

It seems this kind of error suppression causes fatal errors on PHP 8

Is there any way to circumvent such error to cause a fatal error?

Also see dpovshed/octopus#45 for a way how to reproduce...

When removing the error suppression by changing

 $ret = @\stream_select($read, $write, $except, $timeout === null ? null : 0, $timeout);

to

 $ret = \stream_select($read, $write, $except, $timeout === null ? null : 0, $timeout);

The following error is generated:

Cannot cast a filtered stream on this system

When changing

if ($read || $write) {

to

if ($read && $write) {

it works, but at this moment I have no idea what other effects this might have... 😕

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions