diff options
| author | jvoisin | 2018-01-03 13:36:52 +0100 |
|---|---|---|
| committer | jvoisin | 2018-01-03 13:36:52 +0100 |
| commit | 3b547450e5ee6d7bd93f28b44e751ee43936c909 (patch) | |
| tree | e631724e04d9c125a6a5af163e57ac75a07650cb /src/sp_disabled_functions.c | |
| parent | bd31eb5fbfbe6c447ebe529232a71f4b2deed9e4 (diff) | |
Remove some dead code
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 | ||
