diff options
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 */  | 
