IMAP tests
| From: | Olivier Doucet | Date: | Fri, 16 Oct 2009 14:36:13 +0000 |
| Subject: | IMAP tests | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-65399@lists.php.net to get a copy of this message | ||
Hi !
I'm rewriting my new IMAP tests to be PHP6 compatible. I'll post them this
evening / this week.
But I found something when rewriting them, and I need a confirmation:
it seems some PHP functions are not aware of error_reporting level.
Example :
[...]
imap_renamemailbox($stream_id, $newbox.'not2', $newbox.'2');
[...]
=> Notice: Unknown: No matching folders for INBOX.phpttestnot2 (Failure)
(errflg=2) in Unknown on line 0
So new test:
@imap_renamemailbox($stream_id, $newbox.'not2', $newbox.'2');
=> I get the notice anyway
And 3rd test:
error_reporting(0);
imap_renamemailbox($stream_id, $newbox.'not2', $newbox.'2');
=> also get the notice
As you can see, error_reporting has no effect, and error line/file is not
set in notice message.
Is it worth a bug ticket, or is this an "expected behaviour" ?
Olivier