Re: PHP Function warnings/errors suppressed - Why?
Tim Aslat <[email protected]> Mon, 01 Feb 2010 12:17:33 +1030
| Newsgroups | gmane.mail.exim.vexim.devel |
|---|---|
| Message-ID | <[email protected]> |
In the immortal words of Chris Wopat on 02/01/10 10:04: > I noticed that the '@' symbol is being used to suppress errors about > missing functions in "siteaddsubmit.php" and a few other files. It's > in the code for posix stuff like posix_getpwuid() and > posix_getpwnam(). I've seen a few mailing list posts about blank pages > after submitting forms, this is certainly the cause of it. One could > use function_exists() to test but that seems unnecessary and the @'s > should just be dropped. Why are they there? Actually, I don't have the foggiest idea why you would want to suppress warnings/error messages completely. At the very least redirect them to a logfile or syslog. Debugging is hard enough as it is without making it impossible, -- Tim Aslat <[email protected]> Spyderweb Consulting http://www.spyderweb.com.au Mobile: +61 0401088479