Re: The real world ...

From: Date: Thu, 13 Jun 2019 12:04:49 +0000
Subject: Re: The real world ...
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-105895@lists.php.net to get a copy of this message
Hi, I too am in favor of a mechanism to strip out sensitive data from error messages. But Lester, man, you have it all backwards ... On Thu, Jun 13, 2019 at 11:37 AM Lester Caine <lester@lsces.uk> wrote: > > On 13/06/2019 08:55, Andreas Heigl wrote: > >> display_errors=Off in production. > > Which give a white screen ... fine for security but useless for people > using the site! > People using the site are not there to debug it. Whether they see a white screen or an unhandled error that was never meant for them to see, it's still bad user experience and of no use to anybody. > Personally I STILL use display_errors=on and just make sure that > sensitive information is not displayed in the stack. Most of the time it > IS just the warnings one gets and clients can report them and see they > are cleared ... so some sort of middle ground between off and on would > be helpful? > You have logs to see the errors; relying on your users to report the actual error messages to you is the worst way to do it. Cheers, Andrey.

« previous php.internals (#105895) next »