Skip to content

Broken Function: Return type of stream_isatty is incorrect #729

Description

@rvock

Function URL

https://www.php.net/stream_isatty

PHP Version

8.3

Safe Version

2.5.0,dev-master

Description

The PHP function returns a boolean.
The Safe PHP function returns void:

function stream_isatty($stream): void
{
error_clear_last();
$safeResult = \stream_isatty($stream);
if ($safeResult === false) {
throw StreamException::createFromPhpError();
}
}

This means, we cannot use the Safe PHP version

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions