From f103c8203140550e6a1658c31c071038ddc816af Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 10 Sep 2018 13:44:00 +0200 Subject: Bump the coverage --- src/sp_crypt.c | 2 ++ src/sp_wrapper.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src') diff --git a/src/sp_crypt.c b/src/sp_crypt.c index 8336973..96a0cc0 100644 --- a/src/sp_crypt.c +++ b/src/sp_crypt.c @@ -68,6 +68,7 @@ int decrypt_zval(zval *pDest, bool simulation, zend_hash_key *hash_key) { } } + // LCOV_EXCL_START if (ZSTR_LEN(debase64) + (size_t)crypto_secretbox_ZEROBYTES < ZSTR_LEN(debase64)) { if (true == simulation) { @@ -84,6 +85,7 @@ int decrypt_zval(zval *pDest, bool simulation, zend_hash_key *hash_key) { return ZEND_HASH_APPLY_REMOVE; } } + // LCOV_EXCL_END generate_key(key); diff --git a/src/sp_wrapper.c b/src/sp_wrapper.c index 3090513..e336a87 100644 --- a/src/sp_wrapper.c +++ b/src/sp_wrapper.c @@ -48,9 +48,11 @@ PHP_FUNCTION(sp_stream_wrapper_register) { zif_handler orig_handler; zend_string *protocol_name = NULL; + // LCOV_EXCL_BR_START ZEND_PARSE_PARAMETERS_START_EX(ZEND_PARSE_PARAMS_QUIET, 2, EX_NUM_ARGS()); Z_PARAM_STR(protocol_name); ZEND_PARSE_PARAMETERS_END_EX((void)0); + // LCOV_EXCL_BR_END if (wrapper_is_whitelisted(protocol_name)) { orig_handler = zend_hash_str_find_ptr( -- cgit v1.3