diff options
Diffstat (limited to 'ext/standard/mail.c')
-rw-r--r-- | ext/standard/mail.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/mail.c b/ext/standard/mail.c index 39eab7b530..446534b336 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -468,7 +468,7 @@ static int php_mail_detect_multiple_crlf(char *hdr) { */ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char *extra_cmd) { -#ifdef PHP_WIN32 +#ifdef PHP_WIN32 int tsm_err; char *tsm_errmsg = NULL; #endif @@ -505,14 +505,14 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char time_t curtime; zend_string *date_str; size_t len; - - + + time(&curtime); date_str = php_format_date("d-M-Y H:i:s e", 13, curtime, 1); len = spprintf(&tmp, 0, "[%s] %s%s", date_str->val, logline, PHP_EOL); - + php_mail_log_to_file(mail_log, tmp, len); - + zend_string_free(date_str); efree(tmp); } |