bug47983.phpt 363 B

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