xref: /PHP-8.2/ext/imap/tests/bug80226.phpt (revision b5a14e6c)
1--TEST--
2Bug #80226 (imap_sort() leaks sortpgm memory)
3--EXTENSIONS--
4imap
5--SKIPIF--
6<?php
7require_once(__DIR__.'/setup/skipif.inc');
8?>
9--FILE--
10<?php
11require_once(__DIR__.'/setup/imap_include.inc');
12
13echo "Create a new mailbox for test\n";
14
15$stream = setup_test_mailbox("bug80226", 0);
16var_dump(imap_sort($stream, SORTFROM, 0));
17?>
18--CLEAN--
19<?php
20$mailbox_suffix = 'bug80226';
21require_once(__DIR__ . '/setup/clean.inc');
22?>
23--EXPECT--
24Create a new mailbox for test
25Create a temporary mailbox and add 0 msgs
26New mailbox created
27array(0) {
28}
29