Annotation of embedaddon/php/ext/mbstring/tests/bug52861.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #52681 (mb_send_mail() appends an extra MIME-Version header)
                      3: --SKIPIF--
                      4: <?php
                      5: if (!function_exists("mb_send_mail") || !mb_language("neutral")) {
                      6:        die("skip mb_send_mail() not available");
                      7: }
                      8: ?>
                      9: --INI--
                     10: sendmail_path=/bin/cat
                     11: mail.add_x_header=off
                     12: --FILE--
                     13: <?php
                     14: $to = 'example@example.com';
                     15: $headers = 'MIME-Version: 2.0';
                     16: 
                     17: mb_send_mail($to, mb_language(), "test", $headers);
                     18: ?>
                     19: --EXPECTF--
                     20: To: example@example.com
                     21: Subject: %s
                     22: MIME-Version: 2.0
                     23: Content-Type: text/plain; charset=%s
                     24: Content-Transfer-Encoding: %s
                     25: 
                     26: %s

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>