com php-src: Add subject to mail.log: ext/standard/mail.c
| From: | Joe Watkins | Date: | Tue, 14 Jul 2015 15:44:58 +0000 |
| Subject: | com php-src: Add subject to mail.log: ext/standard/mail.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96491@lists.php.net to get a copy of this message | ||
Commit: 29f96ab37e3474e2c0ec3b4776b74b071ea755a6
Author: Tom Sommer <tomsommer@users.noreply.github.com> Mon, 13 Jul 2015 17:35:12
+0200
Committer: tomsommer <root@tstest.fbhlab.dk> Tue, 14 Jul 2015 11:44:58 -0400
Parents: 453ec91dfe0ce53e1867241625958f27fbee17d2
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=29f96ab37e3474e2c0ec3b4776b74b071ea755a6
Log:
Add subject to mail.log
Changed paths:
M ext/standard/mail.c
Diff:
diff --git a/ext/standard/mail.c b/ext/standard/mail.c
index 6e83b95..0b5541e 100644
--- a/ext/standard/mail.c
+++ b/ext/standard/mail.c
@@ -294,7 +294,7 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char
time(&curtime);
date_str = php_format_date("d-M-Y H:i:s e", 13, curtime, 1);
- l = spprintf(&tmp, 0, "[%s] mail() on [%s:%d]: To: %s -- Headers: %s\n",
ZSTR_VAL(date_str), zend_get_executed_filename(), zend_get_executed_lineno(), to, hdr ? hdr :
"");
+ l = spprintf(&tmp, 0, "[%s] mail() on [%s:%d]: To: %s -- Headers: %s -- Subject:
%s\n", date_str->val, zend_get_executed_filename(), zend_get_executed_lineno(), to, hdr ?
hdr : "", subject);
zend_string_free(date_str);