Bug #42331 [Com]: error operator is ignored with imap_rfc822_parse_adrlist

From: Date: Thu, 13 Mar 2014 15:06:11 +0000
Subject: Bug #42331 [Com]: error operator is ignored with imap_rfc822_parse_adrlist
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184773@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=42331&edit=1

 ID:                 42331
 Comment by:         romain at cambien dot net
 Reported by:        carsten_sttgt at gmx dot de
 Summary:            error operator is ignored with
                     imap_rfc822_parse_adrlist
 Status:             Not a bug
 Type:               Bug
 Package:            IMAP related
 Operating System:   Windows_NT
 PHP Version:        5.2.3
 Block user comment: N
 Private report:     N

 New Comment:

You can also flush the error stack with function imap_errors().


Previous Comments:
------------------------------------------------------------------------
[2007-08-17 23:17:24] 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.

------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=42331&edit=1


Thread (4 messages)

« previous php.bugs (#184773) next »