Annotation of embedaddon/php/ext/standard/tests/mail/bug51604.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #51604 (newline in end of header is shown in start of message)
        !             3: --INI--
        !             4: sendmail_path=tee mail_bug51604.out >/dev/null
        !             5: mail.add_x_header = Off
        !             6: --SKIPIF--
        !             7: <?php
        !             8: if(substr(PHP_OS, 0, 3) == "WIN")
        !             9:   die("skip Won't run on Windows");
        !            10: ?>
        !            11: --FILE--
        !            12: <?php
        !            13: // Initialise all required variables
        !            14: $to = 'user@company.com';
        !            15: $subject = 'Test Subject';
        !            16: $message = 'A Message';
        !            17: $additional_headers = "KHeaders\n\n\n\n\n";
        !            18: $outFile = "mail_bug51604.out";
        !            19: @unlink($outFile);
        !            20: 
        !            21: // Calling mail() with all additional headers
        !            22: var_dump( mail($to, $subject, $message, $additional_headers) );
        !            23: echo file_get_contents($outFile);
        !            24: unlink($outFile);
        !            25: 
        !            26: ?>
        !            27: ===DONE===
        !            28: --EXPECT--
        !            29: bool(true)
        !            30: To: user@company.com
        !            31: Subject: Test Subject
        !            32: KHeaders
        !            33: 
        !            34: A Message
        !            35: ===DONE===

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