Skip to content

Bug: stream_get_contents receives null pipes #18

@rikgirbes

Description

@rikgirbes
TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, null given

Location:
Genkgo\Favicon\AppleSafariPinGenerator::generate()

Cause:
When proc_open fails, $pipes[1] or $pipes[2] are null, but stream_get_contents() is still called.

Suggested fix:
Validate $process and pipe resources before reading streams to avoid passing null to stream_get_contents().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions