php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/sub/images/sym/root/php-7.1.11/ext/standard/tests/mail/ |
| files >> //var/www/html/sub/images/sym/root/php-7.1.11/ext/standard/tests/mail/mail_log.phpt |
--TEST--
Test mail() function : mail.log ini setting
--INI--
sendmail_path=tee /tmp/mail.out >/dev/null
mail.log = /tmp/mail.log
--SKIPIF--
<?php
if(substr(PHP_OS, 0, 3) == "WIN")
die("skip Won't run on Windows");
?>
--FILE--
<?php
date_default_timezone_set("UTC");
$logfile = ini_get("mail.log");
if (file_exists($logfile)) {
unlink($logfile);
}
touch($logfile);
clearstatcache();
$to = "test@example.com";
$subject = "mail.log test";
$message = "Testing mail.log";
$headers = "X-Test: 1";
var_dump(filesize($logfile) == 0);
clearstatcache();
var_dump(mail($to, $subject, $message, $headers));
var_dump(filesize($logfile) > 0);
clearstatcache();
echo file_get_contents($logfile);
?>
Done
--CLEAN--
<?php
unlink("/tmp/mail.log");
unlink("/tmp/mail.out");
?>
--EXPECTF--
bool(true)
bool(true)
bool(true)
[%d-%s-%d %d:%d:%d UTC] mail() on [%smail_log.php:%d]: To: test@example.com -- Headers: X-Test: 1 -- Subject: mail.log test
Done
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`