summaryrefslogtreecommitdiff
path: root/src/sp_utils.c
diff options
context:
space:
mode:
authorjvoisin2021-01-30 21:19:29 +0100
committerjvoisin2021-01-30 21:19:29 +0100
commit467f965bf178b1c4d60ddac87af14718f6013bab (patch)
treeca0b616534c2ab2513a99112c213cd87d116f3dd /src/sp_utils.c
parent484bb5613be54cc37d7b2136eca9e2f4e3eb6f1a (diff)
Improve a bit type diversity
Diffstat (limited to 'src/sp_utils.c')
-rw-r--r--src/sp_utils.c8
1 files changed, 4 insertions, 4 deletions
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,
394 return false; 394 return false;
395} 395}
396 396
397int hook_function(const char* original_name, HashTable* hook_table, 397bool hook_function(const char* original_name, HashTable* hook_table,
398 zif_handler new_function) { 398 zif_handler new_function) {
399 zend_internal_function* func; 399 zend_internal_function* func;
400 bool ret = FAILURE; 400 bool ret = false;
401 401
402 /* The `mb` module likes to hook functions, like strlen->mb_strlen, 402 /* The `mb` module likes to hook functions, like strlen->mb_strlen,
403 * so we have to hook both of them. */ 403 * so we have to hook both of them. */
@@ -416,7 +416,7 @@ int hook_function(const char* original_name, HashTable* hook_table,
416 // LCOV_EXCL_STOP 416 // LCOV_EXCL_STOP
417 } 417 }
418 func->handler = new_function; 418 func->handler = new_function;
419 ret = SUCCESS; 419 ret = true;
420 } 420 }
421 } 421 }
422 422