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