From 2d615f1fac1a78012c0cce2e4e9f87c8e6df05b6 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 6 Oct 2018 22:46:12 +0200 Subject: Bump coverage again --- src/sp_execute.c | 3 +-- src/sp_session.c | 8 ++++---- src/sp_utils.c | 2 +- src/sp_var_value.c | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/sp_execute.c b/src/sp_execute.c index 6def91b..e631f7b 100644 --- a/src/sp_execute.c +++ b/src/sp_execute.c @@ -98,7 +98,6 @@ is_in_eval_and_whitelisted(const zend_execute_data *execute_data) { "Eval_whitelist", SP_LOG_DROP, "The function '%s' isn't in the eval whitelist, dropping its call.", ZSTR_VAL(current_function)); - zend_bailout(); } } } @@ -130,7 +129,7 @@ static void sp_execute_ex(zend_execute_data *execute_data) { SNUFFLEUPAGUS_G(config).config_disabled_functions; if (!execute_data) { - return; + return; // LCOV_EXCL_LINE } if (UNEXPECTED(EX(func)->op_array.type == ZEND_EVAL_CODE)) { diff --git a/src/sp_session.c b/src/sp_session.c index 73fda22..550b83d 100644 --- a/src/sp_session.c +++ b/src/sp_session.c @@ -69,13 +69,13 @@ static void sp_hook_session_module() { ps_module *mod; if (old_mod == NULL || s_module == old_mod) { - return; + return; // LCOV_EXCL_LINE } if (s_module == NULL) { s_module = mod = malloc(sizeof(ps_module)); if (mod == NULL) { - return; + return; // LCOV_EXCL_LINE } } @@ -129,7 +129,7 @@ void hook_session() { if ((module = zend_hash_str_find_ptr(&module_registry, ZEND_STRL("session"))) == NULL) { - return; + return; // LCOV_EXCL_LINE } #ifdef ZTS @@ -142,7 +142,7 @@ void hook_session() { } #endif if (old_OnUpdateSaveHandler != NULL) { - return; + return; // LCOV_EXCL_LINE } previous_sessionRINIT = module->request_startup_func; diff --git a/src/sp_utils.c b/src/sp_utils.c index 6634a8e..3def6da 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c @@ -183,7 +183,7 @@ const zend_string* sp_zval_to_zend_string(const zval* zv) { return zend_string_init("ARRAY", sizeof("ARRAY") - 1, 0); case IS_RESOURCE: return zend_string_init("RESOURCE", sizeof("RESOURCE") - 1, 0); - default: + default: // LCOV_EXCL_LINE return zend_string_init("", 0, 0); // LCOV_EXCL_LINE } } diff --git a/src/sp_var_value.c b/src/sp_var_value.c index 268c3d1..7f08c46 100644 --- a/src/sp_var_value.c +++ b/src/sp_var_value.c @@ -59,7 +59,7 @@ static zval *get_constant(const char *value) { static zval *get_var_value(zend_execute_data *ed, const char *var_name, bool is_param) { if (!var_name) { - return NULL; + return NULL; // LCOV_EXCL_LINE } if (*var_name != VARIABLE_TOKEN) { -- cgit v1.3