Skip to content

Commit 54cba5a

Browse files
committed
- Fixed ZTS build
1 parent f2cef8a commit 54cba5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/mail.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void php_mail_log_to_syslog(char *message) {
210210
}
211211

212212

213-
void php_mail_log_to_file(char *filename, char *message, size_t message_size) {
213+
void php_mail_log_to_file(char *filename, char *message, size_t message_size TSRMLS_DC) {
214214
/* Write 'message' to the given file. */
215215
uint flags = IGNORE_URL_WIN | REPORT_ERRORS | STREAM_DISABLE_OPEN_BASEDIR;
216216
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
261261
else {
262262
/* Convert the final space to a newline when logging to file. */
263263
tmp[l - 1] = '\n';
264-
php_mail_log_to_file(mail_log, tmp, l);
264+
php_mail_log_to_file(mail_log, tmp, l TSRMLS_CC);
265265
}
266266

267267
efree(tmp);

0 commit comments

Comments
 (0)