diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2004-03-04 22:49:54 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2004-03-04 22:49:54 +0000 |
commit | e5fb0e3fbde27d068553c6eb92f4326a2b84bed2 (patch) | |
tree | 42c4784bdcd79c77230df32d75cd71bdef3208a5 /sapi | |
parent | 85aa47efaba1baf3b939f542e0560bd393e3e0bf (diff) | |
download | php-git-e5fb0e3fbde27d068553c6eb92f4326a2b84bed2.tar.gz |
- Prevent cli from printing multiple "Interactive mode enabled" if
the command line option is given more than once (like -aaaaaa).
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/cli/php_cli.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 76c71881b5..0a1a447d70 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -714,9 +714,11 @@ int main(int argc, char *argv[]) switch (c) { case 'a': /* interactive mode */ - printf("Interactive mode enabled\n\n"); - fflush(stdout); - interactive=1; + if (interactive) { + printf("Interactive mode enabled\n\n"); + fflush(stdout); + interactive=1; + } break; case 'C': /* don't chdir to the script directory */ |