diff options
Diffstat (limited to 'ext/mbstring/tests/bug52861.phpt')
| -rw-r--r-- | ext/mbstring/tests/bug52861.phpt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/mbstring/tests/bug52861.phpt b/ext/mbstring/tests/bug52861.phpt new file mode 100644 index 000000000..085f3ba29 --- /dev/null +++ b/ext/mbstring/tests/bug52861.phpt @@ -0,0 +1,26 @@ +--TEST-- +Bug #52681 (mb_send_mail() appends an extra MIME-Version header) +--SKIPIF-- +<?php +if (!function_exists("mb_send_mail") || !mb_language("neutral")) { + die("skip mb_send_mail() not available"); +} +?> +--INI-- +sendmail_path=/bin/cat +mail.add_x_header=off +--FILE-- +<?php +$to = 'example@example.com'; +$headers = 'MIME-Version: 2.0'; + +mb_send_mail($to, mb_language(), "test", $headers); +?> +--EXPECTF-- +To: example@example.com +Subject: %s +MIME-Version: 2.0 +Content-Type: text/plain; charset=%s +Content-Transfer-Encoding: %s + +%s |
