From 228fadf307b167a22ad6ec760f3b2ee2e9f2fee3 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 6 Oct 2018 11:26:32 +0200 Subject: Remove sp_terminate and bump a bit the coverage --- src/sp_disabled_functions.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sp_disabled_functions.c') diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index b8ec845..1589cd4 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c @@ -509,7 +509,7 @@ ZEND_FUNCTION(check_disabled_function) { SNUFFLEUPAGUS_G(config) .config_disabled_functions_reg->disabled_functions, SNUFFLEUPAGUS_G(config).config_disabled_functions_hooked)) { - sp_terminate(); + zend_bailout(); } orig_handler = zend_hash_str_find_ptr( @@ -523,7 +523,7 @@ ZEND_FUNCTION(check_disabled_function) { .config_disabled_functions_reg_ret->disabled_functions, SNUFFLEUPAGUS_G(config).config_disabled_functions_ret_hooked, execute_data)) { - sp_terminate(); + zend_bailout(); } } @@ -594,7 +594,7 @@ ZEND_FUNCTION(eval_blacklist_callback) { sp_log_msg("eval", SP_LOG_DROP, "A call to %s was tried in eval, in %s:%d, dropping it.", current_function_name, ZSTR_VAL(filename), line_number); - sp_terminate(); + zend_bailout(); } efree(filename); } @@ -653,7 +653,7 @@ int hook_echo(const char* str, size_t str_length) { zend_string_release(zs); if (ret) { - sp_terminate(); + zend_bailout(); } return zend_write_default(str, str_length); -- cgit v1.3