From 467f965bf178b1c4d60ddac87af14718f6013bab Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 30 Jan 2021 21:19:29 +0100 Subject: Improve a bit type diversity --- src/sp_utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sp_utils.c') diff --git a/src/sp_utils.c b/src/sp_utils.c index 147cc46..a7a3d27 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c @@ -394,10 +394,10 @@ bool sp_match_array_value(const zval* arr, const zend_string* to_match, return false; } -int hook_function(const char* original_name, HashTable* hook_table, - zif_handler new_function) { +bool hook_function(const char* original_name, HashTable* hook_table, + zif_handler new_function) { zend_internal_function* func; - bool ret = FAILURE; + bool ret = false; /* The `mb` module likes to hook functions, like strlen->mb_strlen, * so we have to hook both of them. */ @@ -416,7 +416,7 @@ int hook_function(const char* original_name, HashTable* hook_table, // LCOV_EXCL_STOP } func->handler = new_function; - ret = SUCCESS; + ret = true; } } -- cgit v1.3