diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2013-12-18 09:06:39 +0100 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2013-12-18 09:06:39 +0100 |
commit | ed5a8d510f6e4ae865008fe711efbbc5452adf42 (patch) | |
tree | ee91470302effff16eae78220f55c8b16e8a4464 /sapi/nsapi | |
parent | f70f89c1b1e0bbd2b2b6940bb0a4e12a2be07770 (diff) | |
download | php-git-ed5a8d510f6e4ae865008fe711efbbc5452adf42.tar.gz |
Pass the TSRMLS parameters to the sapi flush hook, this shaves off a few TSRMLS_FETCH() calls in our various SAPIs
Diffstat (limited to 'sapi/nsapi')
-rw-r--r-- | sapi/nsapi/nsapi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c index 1e6a680c91..ee0f4b09cf 100644 --- a/sapi/nsapi/nsapi.c +++ b/sapi/nsapi/nsapi.c @@ -467,10 +467,9 @@ static int sapi_nsapi_ub_write(const char *str, unsigned int str_length TSRMLS_D } /* modified version of apache2 */ -static void sapi_nsapi_flush(void *server_context) +static void sapi_nsapi_flush(void *server_context TSRMLS_DC) { nsapi_request_context *rc = (nsapi_request_context *)server_context; - TSRMLS_FETCH(); if (!rc) { /* we have no context, so no flushing needed. This fixes a SIGSEGV on shutdown */ |