You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Could not open input file: should be sent to stderr #11141
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.
Looks like php_printf is used a bit in main/ and SAPIs for this - and if we're counting sundry diagnostic information, even more in extensions and Zend/. It probably shouldn't.
Activity
NattyNarwhal commentedon Apr 29, 2023
Looks like
php_printfis used a bit inmain/and SAPIs for this - and if we're counting sundry diagnostic information, even more in extensions andZend/. It probably shouldn't.iluuu1994 commentedon Apr 29, 2023
Switching to STDERR should be fine. U fortunately, the error messages seem to be quite inconsistent with where they are printed.
Fix phpGH-11141: Could not open input file: should be sent to stderr