mirror of
https://github.com/php/php-src.git
synced 2026-04-18 05:21:02 +02:00
This also affected imap_reopen(). Add a supplementary test that the CL_EXPUNGE flag does have the intended effect. Closes GH-6732
22 lines
519 B
PHP
22 lines
519 B
PHP
--TEST--
|
|
Bug #80800: imap_open() fails when the flags parameter includes CL_EXPUNGE
|
|
--SKIPIF--
|
|
<?php
|
|
require_once(__DIR__.'/setup/skipif.inc');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once __DIR__.'/setup/imap_include.inc';
|
|
|
|
$mail_box = imap_open(IMAP_DEFAULT_MAILBOX, IMAP_MAILBOX_USERNAME, IMAP_MAILBOX_PASSWORD, flags: CL_EXPUNGE);
|
|
var_dump(imap_reopen($mail_box, IMAP_DEFAULT_MAILBOX, flags: CL_EXPUNGE));
|
|
imap_close($mail_box);
|
|
|
|
echo 'Connected without any issues', "\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
Connected without any issues
|