xref: /PHP-7.3/ext/imap/tests/bug64076.phpt (revision db8bf0a9)
1--TEST--
2Bug #64076 (imap_sort() does not return FALSE on failure)
3--SKIPIF--
4<?php
5require_once __DIR__ . '/skipif.inc';
6?>
7--FILE--
8<?php
9require_once __DIR__ . '/imap_include.inc';
10$stream = setup_test_mailbox('', 2);
11imap_errors(); // clear error stack
12var_dump(imap_sort($stream, SORTFROM, 0, 0, 'UNSUPPORTED SEARCH CRITERIUM'));
13var_dump(imap_errors() !== false);
14?>
15--CLEAN--
16<?php
17require_once __DIR__ . '/clean.inc';
18?>
19--EXPECT--
20Create a temporary mailbox and add 2 msgs
21.. mailbox '{127.0.0.1:143/norsh}INBOX.phpttest' created
22bool(false)
23bool(true)
24