Skip to content

Commit 57d9b20

Browse files
committed
Fix flaky extra mail header (phpGH-8086)
As documented in [RunningTests], tests have to be written to be independent of any php.ini file. As the tests are based on counting the line terminators, the mail.add_x_header php.ini setting has to be off. Fix is to set `mail.add_x_header` to `off`. [RunningTests]: docs/source/miscellaneous/running-tests.rst fix-up-of: phpGH-8086
1 parent 0ffa337 commit 57d9b20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/standard/tests/mail/gh8086.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ GH-8086 (Mail() function not working correctly in PHP 8.x)
33
--INI--
44
sendmail_path={MAIL:gh8086.out}
55
mail.mixed_lf_and_crlf=on
6+
mail.add_x_header=off
67
--FILE--
78
<?php
89
var_dump(mail('[email protected]', 'Test Subject', 'A Message', 'KHeaders'));

0 commit comments

Comments
 (0)