On Tue, Jan 17, 2023, at 1:25 PM, Jesse G. Donat wrote:
> I'm looking to measure reaction to a proposal.
>
> My proposal is to have the STDOUT and STDERR global constants always
> defined rather than just when running via CLI.
>
> The variability of their existence is a common cause of confusion for
> younger inexperienced devs, and even something that slips the mind of more
> experienced developers.
>
> My team actually internally has a sniff forbidding STDOUT and STDERR due to
> their unreliability in favor of fopenening php://stdout / php://stdout
>
> I think removing the environment variability between CLI and Web
> outweighs the potential problems of people writing to these in the wrong
> contexts, especially given that you can already fopen and fwrite to
> standard out and standard error from a web session.
>
> This is only my second RFC I've purprosed so I'm pretty new to the process.
> Let me know what you think and what I can do to help
>
> Thanks,
>
> Jesse G. Donat

Does anyone know why those constants are left out?  Given that the 
functionality can still be used, as noted...

--Larry Garfield

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to