1
0
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:
Arshid
2026-02-10 17:50:42 +05:30
committed by GitHub
parent 4b01cd1bf3
commit 26559c5815

View File

@@ -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);
}
/* }}} */