Bug #16004 Updated: @imap_msgno() and @imap_header() display warnings
| From: | sander@php.net | Date: | Thu, 28 Mar 2002 14:59:34 +0000 |
| Subject: | Bug #16004 Updated: @imap_msgno() and @imap_header() display warnings | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-3562@lists.php.net to get a copy of this message | ||
ID: 16004
Updated by: sander@php.net
Reported By: dshadow@zort.net
Status: Open
Bug Type: IMAP related
Operating System: Linux
PHP Version: 4.1.2
New Comment:
E_NONE just doesn't exist :)
Previous Comments:
------------------------------------------------------------------------
[2002-03-28 09:44:32] dshadow@zort.net
Putting error_reporting(0) supresses the errors. I can use this
temporarially, but it's not an effective long-term solution.
E_NONE does not seem to be defined! Should I file a separate bug for
this?
------------------------------------------------------------------------
[2002-03-27 19:41:48] mfischer@php.net
Afaik this is related to how the current error handling in the ext/imap
extension is implemented.
Can you try settings error_reporting(E_NONE); _before_ you call the
function in question and see if it does not output the error message?
------------------------------------------------------------------------
[2002-03-27 19:20:31] dshadow@zort.net
I'm not sure; I will check tomorrow when I have access to the server
and post another followup.
The problem, isn't the error, though. The problem is that putting the @
infront of imap_msgno() and imap_header() _should_ supress the error
output, and it is not. The error should not be appearing, but it is.
------------------------------------------------------------------------
[2002-03-27 18:02:21] sniper@php.net
This error comes from c-client itself. What version
you have compiled PHP with?
------------------------------------------------------------------------
[2002-03-11 16:24:09] dshadow@zort.net
When processing an email with a header of 'To: ""<>', imap_msgno() and
imap_header give errors of "Unexpected characters at end of address: <>
(errflg=3) in Unknown on line 0", even when I call the functions with
an @ preceding the function name to surpress error output.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16004&edit=1