xref: /php-src/ext/standard/tests/mail/bug73203.phpt (revision f1e00033)
1--TEST--
2Bug #73203 (passing additional_parameters causes mail to fail)
3--DESCRIPTION--
4We're not really interested in testing mail() here, but it is currently the
5only function besides mb_send_mail() which allows to call php_escape_shell_cmd()
6with an empty string. Therefore we don't check the resulting email, but only
7verify that the call succeeds.
8--INI--
9sendmail_path={MAIL:bug73203.eml}
10mail.add_x_header = Off
11--FILE--
12<?php
13var_dump(
14    mail('test@example.com', 'subject', 'message', 'From: lala@example.com', '')
15);
16?>
17--EXPECT--
18bool(true)
19--CLEAN--
20<?php
21unlink('bug73203.eml');
22?>
23