summaryrefslogtreecommitdiff
path: root/src/sp_unserialize.c
diff options
context:
space:
mode:
authorjvoisin2018-01-03 13:36:52 +0100
committerjvoisin2018-01-03 13:36:52 +0100
commit3b547450e5ee6d7bd93f28b44e751ee43936c909 (patch)
treee631724e04d9c125a6a5af163e57ac75a07650cb /src/sp_unserialize.c
parentbd31eb5fbfbe6c447ebe529232a71f4b2deed9e4 (diff)
Remove some dead code
Diffstat (limited to 'src/sp_unserialize.c')
-rw-r--r--src/sp_unserialize.c13
1 files changed, 3 insertions, 10 deletions
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) {
6 void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS); 6 void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS);
7 7
8 /* Call the original `serialize` function. */ 8 /* Call the original `serialize` function. */
9 if ((orig_handler = zend_hash_str_find_ptr( 9 orig_handler = zend_hash_str_find_ptr(
10 SNUFFLEUPAGUS_G(sp_internal_functions_hook), "serialize", 9))) { 10 SNUFFLEUPAGUS_G(sp_internal_functions_hook), "serialize", 9);
11 orig_handler(INTERNAL_FUNCTION_PARAM_PASSTHRU); 11 orig_handler(INTERNAL_FUNCTION_PARAM_PASSTHRU);
12 } else {
13 sp_log_err(
14 "disabled_functions",
15 "Unable to find the pointer to the original function 'serialize' in "
16 "the hashtable.\n");
17 return;
18 }
19 12
20 /* Compute the HMAC of the textual representation of the serialized data*/ 13 /* Compute the HMAC of the textual representation of the serialized data*/
21 zval func_name; 14 zval func_name;