xref: /PHP-8.0/ext/imap/tests/bug80800.phpt (revision 1ee6aad2)
1--TEST--
2Bug #80800: imap_open() fails when the flags parameter includes CL_EXPUNGE
3--SKIPIF--
4<?php
5require_once(__DIR__.'/setup/skipif.inc');
6?>
7--FILE--
8<?php
9
10require_once __DIR__.'/setup/imap_include.inc';
11
12$mail_box = imap_open(IMAP_DEFAULT_MAILBOX, IMAP_MAILBOX_USERNAME, IMAP_MAILBOX_PASSWORD, flags: CL_EXPUNGE);
13var_dump(imap_reopen($mail_box, IMAP_DEFAULT_MAILBOX, flags: CL_EXPUNGE));
14imap_close($mail_box);
15
16echo 'Connected without any issues', "\n";
17
18?>
19--EXPECT--
20bool(true)
21Connected without any issues
22