mirror of
https://github.com/php/php-src.git
synced 2026-04-19 22:11:12 +02:00
33 lines
531 B
PHP
33 lines
531 B
PHP
--TEST--
|
|
Bug #80220 (imap_mail_compose() may leak memory) - message/rfc822 regression
|
|
--EXTENSIONS--
|
|
imap
|
|
--FILE--
|
|
<?php
|
|
$bodies = [[
|
|
'type' => TYPEMESSAGE,
|
|
'subtype' => 'RFC822',
|
|
], [
|
|
'contents.data' => 'asd',
|
|
]];
|
|
var_dump(imap_mail_compose([], $bodies));
|
|
|
|
$bodies = [[
|
|
'type' => TYPEMESSAGE,
|
|
], [
|
|
'contents.data' => 'asd',
|
|
]];
|
|
var_dump(imap_mail_compose([], $bodies));
|
|
?>
|
|
--EXPECT--
|
|
string(53) "MIME-Version: 1.0
|
|
Content-Type: MESSAGE/RFC822
|
|
|
|
|
|
"
|
|
string(53) "MIME-Version: 1.0
|
|
Content-Type: MESSAGE/RFC822
|
|
|
|
|
|
"
|