We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b01cd1 commit 26559c5Copy full SHA for 26559c5
1 file changed
ext/readline/readline.c
@@ -495,10 +495,8 @@ PHP_FUNCTION(readline_completion_function)
495
496
/* NOTE: The rl_attempted_completion_function variable (and others) are part of the readline library, not php */
497
rl_attempted_completion_function = php_readline_completion_cb;
498
- if (rl_attempted_completion_function == NULL) {
499
- RETURN_FALSE;
500
- }
501
- RETURN_TRUE;
+
+ RETURN_BOOL(rl_attempted_completion_function != NULL);
502
}
503
504
/* }}} */
0 commit comments