xref: /PHP-7.3/ext/standard/tests/mail/bug69115.phpt (revision 782352c5)
1--TEST--
2Bug #69115 crash in mail (plus indirect pcre test)
3--SKIPIF--
4<?php
5if( substr(PHP_OS, 0, 3) != 'WIN' ) {
6   die('skip...Windows only test');
7}
8?>
9--INI--
10SMTP =
11smtp_port =
12--FILE--
13<?php
14/* Just ensure it doesn't crash when trimming headers */
15$message = "Line 1\r\nLine 2\r\nLine 3";
16mail('user@example.com', 'My Subject', $message, "From: me@me.me");
17?>
18===DONE===
19--EXPECTREGEX--
20.*
21===DONE===
22