summaryrefslogtreecommitdiff
path: root/src/sp_utils.c
diff options
context:
space:
mode:
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