#42331 [Bgs]: error operator is ignored with imap_rfc822_parse_adrlist
ID: 42331
User updated by: carsten_sttgt at gmx dot de
Reported By: carsten_sttgt at gmx dot de
Status: Bogus
Bug Type: IMAP related
Operating System: Windows_NT
PHP Version: 5.2.3
New Comment:
So that's a documentation problem? Because I can't find anything about
this limitation.
Well, at the moment I temporary change the error_reporting(), to
"disable" the NOTICE.
Previous Comments:
------------------------------------------------------------------------
[2007-08-17 23:02:34] tony2001@php.net
PHP outputs remaining IMAP errors on request shutdown, so @ operator
cannot silence them.
This is expected behaviour, we're limited to the API c-client provides.
------------------------------------------------------------------------
[2007-08-17 22:51:10] carsten_sttgt at gmx dot de
Description:
------------
If the error_reporting is E_ALL and you use
"@imap_rfc822_parse_adrlist()", the error operator is ignored if the
addresslist is wrong.
Reproduce code:
---------------
<?php
error_reporting(E_ALL);
$address = 'mail1@example.com mail2@example.com';
@imap_rfc822_parse_adrlist($address, '');
?>
Expected result:
----------------
No output.
Actual result:
--------------
<br />
<b>Notice</b>: Unknown: Must use comma to separate addresses:
mail2@example.com (errflg=3) in <b>Unknown</b> on line <b>0</b><br />
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42331&edit=1
Thread (4 messages)