diff options
| author | Remi Collet | 2018-09-03 15:38:51 +0200 |
|---|---|---|
| committer | jvoisin | 2018-09-03 13:38:51 +0000 |
| commit | 499a81914597f156fe9a67e47e3baf82a0af4bde (patch) | |
| tree | 23630733f4b892d362217cb5c8840d268d03c7c1 /src/sp_unserialize.c | |
| parent | c947eb5378f894b154bdd33588f4bfb470075fe8 (diff) | |
Fix #241 segfault on 32-bit related to bad protype (#242)
This should close #241
Diffstat (limited to 'src/sp_unserialize.c')
| -rw-r--r-- | src/sp_unserialize.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_unserialize.c b/src/sp_unserialize.c index ab0139a..fb44ce4 100644 --- a/src/sp_unserialize.c +++ b/src/sp_unserialize.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ZEND_DECLARE_MODULE_GLOBALS(snuffleupagus) | 3 | ZEND_DECLARE_MODULE_GLOBALS(snuffleupagus) |
| 4 | 4 | ||
| 5 | PHP_FUNCTION(sp_serialize) { | 5 | PHP_FUNCTION(sp_serialize) { |
| 6 | void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS); | 6 | zif_handler orig_handler; |
| 7 | 7 | ||
| 8 | /* Call the original `serialize` function. */ | 8 | /* Call the original `serialize` function. */ |
| 9 | orig_handler = zend_hash_str_find_ptr( | 9 | orig_handler = zend_hash_str_find_ptr( |
| @@ -42,7 +42,7 @@ PHP_FUNCTION(sp_serialize) { | |||
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | PHP_FUNCTION(sp_unserialize) { | 44 | PHP_FUNCTION(sp_unserialize) { |
| 45 | void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS); | 45 | zif_handler orig_handler; |
| 46 | 46 | ||
| 47 | char *buf = NULL; | 47 | char *buf = NULL; |
| 48 | char *serialized_str = NULL; | 48 | char *serialized_str = NULL; |
