xref: /php-src/ext/standard/tests/mail/bug47983.phpt (revision 6983ae75)
1--TEST--
2Bug #47983 (mixed LF and CRLF line endings in mail())
3--INI--
4sendmail_path={MAIL:bug47983.out}
5--FILE--
6<?php
7var_dump(mail('user@example.com', 'Test Subject', 'A Message', 'KHeaders'));
8$mail = file_get_contents('bug47983.out');
9var_dump(preg_match_all('/(?<!\r)\n/', $mail));
10?>
11--CLEAN--
12<?php
13unlink('bug47983.out');
14?>
15--EXPECT--
16bool(true)
17int(0)
18