php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42331 error operator is ignored with imap_rfc822_parse_adrlist
Submitted: 2007-08-17 22:51 UTC Modified: 2007-08-17 23:17 UTC
From: carsten_sttgt at gmx dot de Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 5.2.3 OS: Windows_NT
Private report: No CVE-ID: None
 [2007-08-17 22:51 UTC] 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 />


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-17 23:02 UTC] 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 23:17 UTC] carsten_sttgt at gmx dot de
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.
 [2014-03-13 15:06 UTC] romain at cambien dot net
You can also flush the error stack with function imap_errors().
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 18:01:28 2024 UTC