summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_php_sapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_php_sapi.c')
-rw-r--r--src/nxt_php_sapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c
index 369e7f32..8fbe7f65 100644
--- a/src/nxt_php_sapi.c
+++ b/src/nxt_php_sapi.c
@@ -1041,7 +1041,11 @@ nxt_php_execute(nxt_php_run_ctx_t *ctx, nxt_unit_request_t *r)
if (r->authorization_field != NXT_UNIT_NONE_FIELD) {
f = r->fields + r->authorization_field;
+#ifdef NXT_PHP7
php_handle_auth_data(nxt_unit_sptr_get(&f->value));
+#else
+ php_handle_auth_data(nxt_unit_sptr_get(&f->value) TSRMLS_CC);
+#endif
} else {
SG(request_info).auth_digest = NULL;