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
And 3rd test:
error_reporting(0);
imap_renamemailbox($stream_id, $newbox.'not2', $newbox.'2');
=> also get the notice
This one is weird. The warnings are being issued in RSHUTDOWN, so they are not suppressible by @, but they should be with error_reporting().
This is definitely a bug. Please open a new bug report.
Nuno