From 3b547450e5ee6d7bd93f28b44e751ee43936c909 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 3 Jan 2018 13:36:52 +0100 Subject: Remove some dead code --- src/sp_disabled_functions.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'src/sp_disabled_functions.c') 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) { sp_terminate(); } - if ((orig_handler = zend_hash_str_find_ptr( + orig_handler = zend_hash_str_find_ptr( SNUFFLEUPAGUS_G(disabled_functions_hook), current_function_name, - strlen(current_function_name)))) { - orig_handler(INTERNAL_FUNCTION_PARAM_PASSTHRU); - if (true == should_drop_on_ret(return_value, execute_data)) { - sp_terminate(); - } - } else { - sp_log_err( - "disabled_functions", - "Unable to find the pointer to the original function '%s' in the " - "hashtable.\n", - current_function_name); + strlen(current_function_name)); + orig_handler(INTERNAL_FUNCTION_PARAM_PASSTHRU); + if (true == should_drop_on_ret(return_value, execute_data)) { + sp_terminate(); } } -- cgit v1.3