diff options
| author | Jakub Onderka | 2026-01-25 20:05:54 +0100 |
|---|---|---|
| committer | GitHub | 2026-01-25 20:05:54 +0100 |
| commit | 9ae9a21b60a25aa4df009211dbfbd9ac765e4ecb (patch) | |
| tree | 3fc342c8ffdce5c38b9f84f1bf2b69f4afeaf98f | |
| parent | b115fe5b74ce08c2979b74d53a0d5f07ccfa03f8 (diff) | |
Avoid double checking if function is hooked
| -rw-r--r-- | src/sp_execute.c | 2 |
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); |
