1--TEST--
2imap_search() with unique ID (SE_UID) flag
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$imap_mail_box = setup_test_mailbox_for_uid_tests("imapsearchuid");
15
16var_dump(imap_search($imap_mail_box, 'ALL', SE_UID));
17
18imap_close($imap_mail_box);
19
20?>
21--CLEAN--
22<?php
23$mailbox_suffix = 'imapsearchuid';
24require_once(__DIR__ . '/setup/clean.inc');
25?>
26--EXPECT--
27Create a temporary mailbox and add 10 msgs
28New mailbox created
29Delete 4 messages for Unique ID generation
30array(6) {
31  [0]=>
32  int(1)
33  [1]=>
34  int(2)
35  [2]=>
36  int(7)
37  [3]=>
38  int(8)
39  [4]=>
40  int(9)
41  [5]=>
42  int(10)
43}
44