Re: Measuring Proposal Reaction

From: Date: Wed, 18 Jan 2023 22:29:23 +0000
Subject: Re: Measuring Proposal Reaction
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-119338@lists.php.net to get a copy of this message
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

« previous php.internals (#119338) next »