📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-07-12 08:59:06
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php84-pecl-imap_1.0.3-1.el8
/
tests
📍 /opt/alt/tests/alt-php84-pecl-imap_1.0.3-1.el8/tests
🔄 Refresh
✏️
Editing: imap_clearflag_full_uid.phpt
Read Only
--TEST-- imap_clearflag_full() passing a unique ID --EXTENSIONS-- imap --SKIPIF-- <?php require_once(__DIR__.'/setup/skipif.inc'); ?> --FILE-- <?php require_once(__DIR__.'/setup/imap_include.inc'); $imap_mail_box = setup_test_mailbox_for_uid_tests("imapclearflagfulluid"); /* This works on the assumption that UID message 3 to 6 inclusive are deleted. */ imap_setflag_full($imap_mail_box, '2,8,9', '\Answered', ST_UID); imap_setflag_full($imap_mail_box, '7,10', '\Deleted', ST_UID); imap_setflag_full($imap_mail_box, '7:9', '\Flagged', ST_UID); // Testing individual entry imap_clearflag_full($imap_mail_box, '10', '\Deleted', ST_UID); // Testing multiple entries entry imap_clearflag_full($imap_mail_box, '2,9', '\Answered', ST_UID); // Testing entry range imap_clearflag_full($imap_mail_box, '7:8', '\Flagged', ST_UID); echo 'ALL: '; var_dump(imap_search($imap_mail_box, 'ALL')); echo 'ALL (with UID correspondance): '; var_dump(imap_search($imap_mail_box, 'ALL', SE_UID)); echo 'ANSWERED: '; var_dump(imap_search($imap_mail_box, 'ANSWERED')); echo 'DELETED: '; var_dump(imap_search($imap_mail_box, 'DELETED')); echo 'FLAGGED: '; var_dump(imap_search($imap_mail_box, 'FLAGGED')); imap_close($imap_mail_box); ?> --CLEAN-- <?php $mailbox_suffix = 'imapclearflagfulluid'; require_once(__DIR__ . '/setup/clean.inc'); ?> --EXPECT-- Create a temporary mailbox and add 10 msgs New mailbox created Delete 4 messages for Unique ID generation ALL: array(6) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) [5]=> int(6) } ALL (with UID correspondance): array(6) { [0]=> int(1) [1]=> int(2) [2]=> int(7) [3]=> int(8) [4]=> int(9) [5]=> int(10) } ANSWERED: array(1) { [0]=> int(4) } DELETED: array(1) { [0]=> int(3) } FLAGGED: array(1) { [0]=> int(5) }
💾 Save Changes
❌ Cancel