From 90723b8c64a8f6c43313ad65d3401706e3f7ceb9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 17 May 2022 16:08:34 +0200 Subject: [PATCH] Only set orig_register_server_variables once --- src/sp_ifilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sp_ifilter.c b/src/sp_ifilter.c index 80998829..9c468758 100644 --- a/src/sp_ifilter.c +++ b/src/sp_ifilter.c @@ -97,7 +97,7 @@ static void sp_register_server_variables(zval *track_vars_array) { void sp_hook_register_server_variables() { - if (sapi_module.register_server_variables) { + if (sapi_module.register_server_variables && sapi_module.register_server_variables != sp_register_server_variables) { orig_register_server_variables = sapi_module.register_server_variables; sapi_module.register_server_variables = sp_register_server_variables; }