From 9ae9a21b60a25aa4df009211dbfbd9ac765e4ecb Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Sun, 25 Jan 2026 20:05:54 +0100 Subject: Avoid double checking if function is hooked --- src/sp_execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sp_execute.c b/src/sp_execute.c index 690b1a9..60c5602 100644 --- a/src/sp_execute.c +++ b/src/sp_execute.c @@ -210,7 +210,7 @@ static inline void sp_execute_handler(INTERNAL_FUNCTION_PARAMETERS, bool interna return; } - bool is_hooked = (zend_hash_str_find(SPG(disabled_functions_hook), VAR_AND_LEN(function_name)) || zend_hash_str_find(SPG(disabled_functions_hook), VAR_AND_LEN(function_name))); + bool is_hooked = zend_hash_str_find(SPG(disabled_functions_hook), VAR_AND_LEN(function_name)); if (is_hooked) { sp_call_orig_execute(INTERNAL_FUNCTION_PARAM_PASSTHRU, internal); efree(function_name); -- cgit v1.3