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_disabled_functions.c | |
| parent | c947eb5378f894b154bdd33588f4bfb470075fe8 (diff) | |
Fix #241 segfault on 32-bit related to bad protype (#242)
This should close #241
Diffstat (limited to 'src/sp_disabled_functions.c')
| -rw-r--r-- | src/sp_disabled_functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index 835776b..b8ec845 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c | |||
| @@ -501,7 +501,7 @@ bool should_drop_on_ret(const zval* return_value, const sp_list_node* config, | |||
| 501 | } | 501 | } |
| 502 | 502 | ||
| 503 | ZEND_FUNCTION(check_disabled_function) { | 503 | ZEND_FUNCTION(check_disabled_function) { |
| 504 | void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS); | 504 | zif_handler orig_handler; |
| 505 | const char* current_function_name = get_active_function_name(TSRMLS_C); | 505 | const char* current_function_name = get_active_function_name(TSRMLS_C); |
| 506 | 506 | ||
| 507 | if (true == should_disable_ht( | 507 | if (true == should_disable_ht( |
| @@ -566,7 +566,7 @@ static int hook_functions(HashTable* to_hook_ht, HashTable* hooked_ht) { | |||
| 566 | } | 566 | } |
| 567 | 567 | ||
| 568 | ZEND_FUNCTION(eval_blacklist_callback) { | 568 | ZEND_FUNCTION(eval_blacklist_callback) { |
| 569 | void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS); | 569 | zif_handler orig_handler; |
| 570 | const char* current_function_name = get_active_function_name(TSRMLS_C); | 570 | const char* current_function_name = get_active_function_name(TSRMLS_C); |
| 571 | zend_string* tmp = | 571 | zend_string* tmp = |
| 572 | zend_string_init(current_function_name, strlen(current_function_name), 0); | 572 | zend_string_init(current_function_name, strlen(current_function_name), 0); |
