1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
archived-php-src/ext/standard/tests/mail/bug69115.phpt
T
2018-10-14 19:46:15 +02:00

18 lines
436 B
PHP

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