diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2010-08-18 13:34:40 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2010-08-18 13:34:40 +0000 |
commit | 34b631f6799a9fc81980f3027865b6258452df43 (patch) | |
tree | 8c4a81845bd415e22417514c80787bfaadc42bdc /sapi/apache_hooks | |
parent | 65d031d3da891ce12ddf41ffe676f16d0ac3db4e (diff) | |
download | php-git-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')
-rw-r--r-- | sapi/apache_hooks/mod_php5.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sapi/apache_hooks/mod_php5.c b/sapi/apache_hooks/mod_php5.c index 8e7cd2f292..f7fadd9919 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); |