Skip to content

Could not open input file: should be sent to stderr #11141

Closed
ThePHPF/thephp.foundation
#90
@mvorisek

Description

@mvorisek

Description

Repro command: php non-existent.php

Currently the output (Could not open input file: non-existent.php) is sent to stdout but it should be sent to stderr instead.

I have discovered when using php for interprocess communication where the stdout might be consumed as regular data causing protocol failure hard to understand, as in my case, only the first 4 bytes were consumed (and from Coul it was hard to identify the problem). Simply said, stdout should never contain any other data then data printed by a valid script.

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