diff options
Diffstat (limited to 'src/sp_disabled_functions.c')
| -rw-r--r-- | src/sp_disabled_functions.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index 9382b09..829f938 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c | |||
| @@ -430,19 +430,12 @@ ZEND_FUNCTION(check_disabled_function) { | |||
| 430 | sp_terminate(); | 430 | sp_terminate(); |
| 431 | } | 431 | } |
| 432 | 432 | ||
| 433 | if ((orig_handler = zend_hash_str_find_ptr( | 433 | orig_handler = zend_hash_str_find_ptr( |
| 434 | SNUFFLEUPAGUS_G(disabled_functions_hook), current_function_name, | 434 | SNUFFLEUPAGUS_G(disabled_functions_hook), current_function_name, |
| 435 | strlen(current_function_name)))) { | 435 | strlen(current_function_name)); |
| 436 | orig_handler(INTERNAL_FUNCTION_PARAM_PASSTHRU); | 436 | orig_handler(INTERNAL_FUNCTION_PARAM_PASSTHRU); |
| 437 | if (true == should_drop_on_ret(return_value, execute_data)) { | 437 | if (true == should_drop_on_ret(return_value, execute_data)) { |
| 438 | sp_terminate(); | 438 | sp_terminate(); |
| 439 | } | ||
| 440 | } else { | ||
| 441 | sp_log_err( | ||
| 442 | "disabled_functions", | ||
| 443 | "Unable to find the pointer to the original function '%s' in the " | ||
| 444 | "hashtable.\n", | ||
| 445 | current_function_name); | ||
| 446 | } | 439 | } |
| 447 | } | 440 | } |
| 448 | 441 | ||
