xref: /PHP-8.1/ext/standard/tests/mail/bug54298.phpt (revision ae215069)
1--TEST--
2Bug #54298 (Using empty additional_headers adding extraneous CRLF)
3--INI--
4sendmail_path=tee bug54298.eml >/dev/null
5mail.add_x_header = Off
6--SKIPIF--
7<?php
8if (PHP_OS_FAMILY === 'Windows') die("skip Won't run on Windows");
9?>
10--FILE--
11<?php
12var_dump(mail('someuser@example.com', 'testsubj', 'Body part', ''));
13echo file_get_contents('bug54298.eml');
14?>
15--EXPECT--
16bool(true)
17To: someuser@example.com
18Subject: testsubj
19
20Body part
21--CLEAN--
22<?php
23unlink('bug54298.eml');
24?>
25