1--TEST--
2Test mail() function : variation invalid program for sendmail
3--INI--
4sendmail_path=rubbish 2>/dev/null
5--SKIPIF--
6<?php
7if(substr(PHP_OS, 0, 3) == "WIN")
8  die("skip Won't run on Windows");
9?>
10--FILE--
11<?php
12/* Prototype  : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
13 * Description: Send an email message
14 * Source code: ext/standard/mail.c
15 * Alias to functions:
16 */
17
18echo "*** Testing mail() : variation ***\n";
19
20// Initialise all required variables
21$to = 'user@example.com';
22$subject = 'Test Subject';
23$message = 'A Message';
24var_dump( mail($to, $subject, $message) );
25?>
26===DONE===
27--EXPECT--
28*** Testing mail() : variation ***
29bool(false)
30===DONE===
31