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

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

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