1--TEST--
2Test mail() function : variation force extra parameters
3--INI--
4sendmail_path="cat > /tmp/php_test_mailVariation2.out"
5mail.force_extra_parameters="-n"
6mail.add_x_header = Off
7--SKIPIF--
8<?php
9if(substr(PHP_OS, 0, 3) == "WIN")
10  die("skip Won't run on Windows");
11?>
12--FILE--
13<?php
14echo "*** Testing mail() : basic functionality ***\n";
15
16
17// Initialise all required variables
18$to = 'user@example.com';
19$subject = 'Test Subject';
20$message = 'A Message';
21$outFile = "/tmp/php_test_mailVariation2.out";
22@unlink($outFile);
23
24var_dump( mail($to, $subject, $message) );
25echo file_get_contents($outFile);
26unlink($outFile);
27
28?>
29--EXPECTF--
30*** Testing mail() : basic functionality ***
31bool(true)
32%w1%wTo: user@example.com
33%w2%wSubject: Test Subject
34%w3%w
35%w4%wA Message
36