xref: /PHP-8.0/ext/standard/tests/mail/bug69115.phpt (revision a555cc0b)
1--TEST--
2Bug #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--
6SMTP =
7smtp_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";
12mail('user@example.com', 'My Subject', $message, "From: me@me.me");
13?>
14--EXPECTREGEX--
15.*
16