bug69115.phpt 414 B

123456789101112131415
  1. --TEST--
  2. Bug #69115 crash in mail (plus indirect pcre test)
  3. --SKIPIF--
  4. <?php if (substr(PHP_OS, 0, 3) !== 'WIN') die('skip Windows only test, as in Unix builds it sends an email'); ?>
  5. --INI--
  6. SMTP =
  7. smtp_port =
  8. --FILE--
  9. <?php
  10. /* Just ensure it doesn't crash when trimming headers */
  11. $message = "Line 1\r\nLine 2\r\nLine 3";
  12. mail('user@example.com', 'My Subject', $message, "From: me@me.me");
  13. ?>
  14. --EXPECTREGEX--
  15. .*