Skip to content

Commit

Permalink
Only set orig_register_server_variables once
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored May 17, 2022
1 parent 3d206b9 commit 90723b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sp_ifilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 90723b8

Please sign in to comment.