Skip to content

Commit 737f7dd

Browse files
committed
Prevent imap mail tests from borking instead of skipping
As of commit e49593a[1], run-tests.php is rather picky regarding the output of SKIPIF sections, so we have to suppress warnings for failing imap_open(). [1] <http://git.php.net/?p=php-src.git;a=commit;h=e49593a7c3159a5673ce74b4e5133f1264dc313f>
1 parent 59e0674 commit 737f7dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/tests/mail/mail_skipif.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $password = 'p4ssw0rd';
1818
$options = OP_HALFOPEN; // this should be enough to verify server present
1919
$retries = 0; // don't retry connect on failure
2020

21-
$mbox = imap_open($mailbox, $username, $password, $options, $retries);
21+
$mbox = @imap_open($mailbox, $username, $password, $options, $retries);
2222
if (!$mbox) {
2323
die("skip could not connect to mailbox $mailbox");
2424
}

0 commit comments

Comments
 (0)