1--TEST--
2Test imap_errors() function : anonymous user not supported
3--EXTENSIONS--
4imap
5--SKIPIF--
6<?php
7require_once __DIR__.'/setup/skipif.inc';
8?>
9--FILE--
10<?php
11echo "*** Testing imap_errors() : anonymous user not supported ***\n";
12require_once __DIR__.'/setup/imap_include.inc';
13
14$mbox = @imap_open(IMAP_DEFAULT_MAILBOX, IMAP_MAILBOX_USERNAME, IMAP_MAILBOX_PASSWORD, OP_ANONYMOUS);
15
16echo "List any errors\n";
17var_dump(imap_errors());
18
19?>
20--EXPECTF--
21*** Testing imap_errors() : anonymous user not supported ***
22List any errors
23array(1) {
24  [0]=>
25  string(%d) "%s"
26}
27