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_unserialize.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/sp_unserialize.c') diff --git a/src/sp_unserialize.c b/src/sp_unserialize.c index 312ba2e..476bebc 100644 --- a/src/sp_unserialize.c +++ b/src/sp_unserialize.c @@ -6,16 +6,9 @@ PHP_FUNCTION(sp_serialize) { void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS); /* Call the original `serialize` function. */ - if ((orig_handler = zend_hash_str_find_ptr( - SNUFFLEUPAGUS_G(sp_internal_functions_hook), "serialize", 9))) { - orig_handler(INTERNAL_FUNCTION_PARAM_PASSTHRU); - } else { - sp_log_err( - "disabled_functions", - "Unable to find the pointer to the original function 'serialize' in " - "the hashtable.\n"); - return; - } + orig_handler = zend_hash_str_find_ptr( + SNUFFLEUPAGUS_G(sp_internal_functions_hook), "serialize", 9); + orig_handler(INTERNAL_FUNCTION_PARAM_PASSTHRU); /* Compute the HMAC of the textual representation of the serialized data*/ zval func_name; -- cgit v1.3