From bb6f4dfc7d5dd9c7441049f597d2d1e488e4ba8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Schl=C3=BCter?= Date: Tue, 17 May 2005 14:33:15 +0000 Subject: - Fix readline loop-condition - Fix cli_is_valid_code detection --- sapi/cli/php_cli.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index e7a620980d..165b7e1c69 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -978,12 +978,11 @@ int main(int argc, char *argv[]) history_file = tilde_expand("~/.php_history"); rl_attempted_completion_function = cli_code_completion; - /*rl_completion_append_character = '(';*/ rl_special_prefixes = "$"; read_history(history_file); EG(exit_status) = 0; - while ((line = readline(pos ? prompt : "php > ")) != NULL) { + while ((line = readline(prompt)) != NULL) { if (strcmp(line, "exit") == 0 || strcmp(line, "quit") == 0) { free(line); break; -- cgit v1.2.1