📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 01:19:22
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php85-pecl-imap_1.0.3-2.el8
/
tests
📍 /opt/alt/tests/alt-php85-pecl-imap_1.0.3-2.el8/tests
🔄 Refresh
✏️
Editing: bug80223.phpt
Read Only
--TEST-- Bug #80223 (imap_mail_compose() leaks envelope on malformed bodies) --EXTENSIONS-- imap --FILE-- <?php try { imap_mail_compose([], []); } catch (\ValueError $e) { echo $e->getMessage(), \PHP_EOL; } try { imap_mail_compose([], [1]); } catch (\TypeError $e) { echo $e->getMessage(), \PHP_EOL; } try { imap_mail_compose([], [[]]); } catch (\ValueError $e) { echo $e->getMessage(), \PHP_EOL; } ?> --EXPECT-- imap_mail_compose(): Argument #2 ($bodies) cannot be empty imap_mail_compose(): Argument #2 ($bodies) individual body must be of type array, int given imap_mail_compose(): Argument #2 ($bodies) individual body cannot be empty
💾 Save Changes
❌ Cancel