mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/readline: Returning a boolean value using RETURN_BOOL (#21186)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
||||
Reference in New Issue
Block a user