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