diff options
Diffstat (limited to 'src/sp_unserialize.c')
| -rw-r--r-- | src/sp_unserialize.c | 13 |
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; |
