mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
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>
This commit is contained in:
parent
59e0674185
commit
737f7dd8f6
@ -18,7 +18,7 @@ $password = 'p4ssw0rd';
|
||||
$options = OP_HALFOPEN; // this should be enough to verify server present
|
||||
$retries = 0; // don't retry connect on failure
|
||||
|
||||
$mbox = imap_open($mailbox, $username, $password, $options, $retries);
|
||||
$mbox = @imap_open($mailbox, $username, $password, $options, $retries);
|
||||
if (!$mbox) {
|
||||
die("skip could not connect to mailbox $mailbox");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user