diff options
author | Johannes Schlüter <johannes@php.net> | 2005-05-17 14:33:15 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2005-05-17 14:33:15 +0000 |
commit | bb6f4dfc7d5dd9c7441049f597d2d1e488e4ba8f (patch) | |
tree | 0f58424fb620f5dae26dc02f5bf8984f30ece031 /sapi/cli/php_cli.c | |
parent | 5cd3bd2ea75fe1cf4ac007ed49b228da3bf9b6b0 (diff) | |
download | php-git-bb6f4dfc7d5dd9c7441049f597d2d1e488e4ba8f.tar.gz |
- Fix readline loop-condition
- Fix cli_is_valid_code detection
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |