summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipensp@gmail.com>2012-07-24 10:02:32 -0300
committerFelipe Pena <felipensp@gmail.com>2012-07-24 10:02:32 -0300
commit54cba5aa91c58e2bcfa7957f72d5f4553c0dd265 (patch)
tree4460f45fb2ce89c35ddad52f7fd612992aa382e6
parentf2cef8afc499ede08e935449030595933d070c5e (diff)
downloadphp-git-54cba5aa91c58e2bcfa7957f72d5f4553c0dd265.tar.gz
- Fixed ZTS build
-rw-r--r--ext/standard/mail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/mail.c b/ext/standard/mail.c
index 0bbdebcd45..364f7fc399 100644
--- a/ext/standard/mail.c
+++ b/ext/standard/mail.c
@@ -210,7 +210,7 @@ void php_mail_log_to_syslog(char *message) {
}
-void php_mail_log_to_file(char *filename, char *message, size_t message_size) {
+void php_mail_log_to_file(char *filename, char *message, size_t message_size TSRMLS_DC) {
/* Write 'message' to the given file. */
uint flags = IGNORE_URL_WIN | REPORT_ERRORS | STREAM_DISABLE_OPEN_BASEDIR;
php_stream *stream = php_stream_open_wrapper(filename, "a", flags, NULL);
@@ -261,7 +261,7 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char
else {
/* Convert the final space to a newline when logging to file. */
tmp[l - 1] = '\n';
- php_mail_log_to_file(mail_log, tmp, l);
+ php_mail_log_to_file(mail_log, tmp, l TSRMLS_CC);
}
efree(tmp);