xref: /PHP-5.6/ext/standard/tests/mail/bug73203.phpt (revision e72165bb)
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=cat >/dev/null
10mail.add_x_header = Off
11--SKIPIF--
12<?php
13if (substr(PHP_OS, 0, 3) === 'WIN') die('skip won\'t run on Windows');
14?>
15--FILE--
16<?php
17var_dump(
18    mail('test@example.com', 'subject', 'message', 'From: lala@example.com', '')
19);
20?>
21===DONE===
22--EXPECT--
23bool(true)
24===DONE===
25