summaryrefslogtreecommitdiff
path: root/sapi/apache_hooks/mod_php5.c
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2010-08-18 13:34:40 (GMT)
committerKalle Sommer Nielsen <kalle@php.net>2010-08-18 13:34:40 (GMT)
commit34b631f6799a9fc81980f3027865b6258452df43 (patch)
tree8c4a81845bd415e22417514c80787bfaadc42bdc /sapi/apache_hooks/mod_php5.c
parent65d031d3da891ce12ddf41ffe676f16d0ac3db4e (diff)
downloadphp-34b631f6799a9fc81980f3027865b6258452df43.tar.gz
Pass the TSRMS pointers to sapi_module_struct.log_message, this saves some TSRMLS_FETCH() calls in a few of our SAPI's
Diffstat (limited to 'sapi/apache_hooks/mod_php5.c')
-rw-r--r--sapi/apache_hooks/mod_php5.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sapi/apache_hooks/mod_php5.c b/sapi/apache_hooks/mod_php5.c
index 8e7cd2f..f7fadd9 100644
--- a/sapi/apache_hooks/mod_php5.c
+++ b/sapi/apache_hooks/mod_php5.c
@@ -430,10 +430,8 @@ static int php_apache_startup(sapi_module_struct *sapi_module)
/* {{{ php_apache_log_message
*/
-static void php_apache_log_message(char *message)
+static void php_apache_log_message(char *message TSRMLS_DC)
{
- TSRMLS_FETCH();
-
if (SG(server_context)) {
#if MODULE_MAGIC_NUMBER >= 19970831
aplog_error(NULL, 0, APLOG_ERR | APLOG_NOERRNO, ((request_rec *) SG(server_context))->server, "%s", message);