summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Onderka2026-01-25 20:05:54 +0100
committerGitHub2026-01-25 20:05:54 +0100
commit9ae9a21b60a25aa4df009211dbfbd9ac765e4ecb (patch)
tree3fc342c8ffdce5c38b9f84f1bf2b69f4afeaf98f /src
parentb115fe5b74ce08c2979b74d53a0d5f07ccfa03f8 (diff)
Avoid double checking if function is hooked
Diffstat (limited to 'src')
-rw-r--r--src/sp_execute.c2
1 files changed, 1 insertions, 1 deletions
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
210 return; 210 return;
211 } 211 }
212 212
213 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))); 213 bool is_hooked = zend_hash_str_find(SPG(disabled_functions_hook), VAR_AND_LEN(function_name));
214 if (is_hooked) { 214 if (is_hooked) {
215 sp_call_orig_execute(INTERNAL_FUNCTION_PARAM_PASSTHRU, internal); 215 sp_call_orig_execute(INTERNAL_FUNCTION_PARAM_PASSTHRU, internal);
216 efree(function_name); 216 efree(function_name);