Commit 26559c5815a for php.net
commit 26559c5815a844b344d18a994277a7b567c6cb48
Author: Arshid <arshidkv12@gmail.com>
Date: Tue Feb 10 17:50:42 2026 +0530
ext/readline: Returning a boolean value using RETURN_BOOL (#21186)
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index 61129194db2..dad6a726f1b 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -495,10 +495,8 @@ PHP_FUNCTION(readline_completion_function)
/* NOTE: The rl_attempted_completion_function variable (and others) are part of the readline library, not php */
rl_attempted_completion_function = php_readline_completion_cb;
- if (rl_attempted_completion_function == NULL) {
- RETURN_FALSE;
- }
- RETURN_TRUE;
+
+ RETURN_BOOL(rl_attempted_completion_function != NULL);
}
/* }}} */