[dev] Note: liberal use of @ in front of function calls ...

Chuck Hagenbuch chuck@horde.org
Sun Nov 24 15:06:39 2002


Quoting Chris <chris@jeks.net>:

> ... just a quick note. There seems to be a fondness of putting '@' in
> front of all the IMAP calls. This nobbles certain stuff on my 
> installation.

These are necessary; depending on PHP's error level, these errors would
otherwise be dumped directly to the browser, causing "headers already sent"
errors, bad HTML, ugly display, confusing users, etc.

> The @imap_mail_copy suppresses the errors that would have been returned
> by imap_last_error. With the @ on imap_mail_copy the function

I've never known it to work this way, but if that indeed is what happens,
that's a bug in PHP, not IMP.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"People ask me all the time what it will be like living without otters."
 - Google, thanks to Harpers


More information about the dev mailing list