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

Reply via email to