summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 68267c45c5..f90bd061f6 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -813,7 +813,7 @@ int main(int argc, char *argv[])
request_started = 1;
php_cli_usage(argv[0]);
php_output_end_all(TSRMLS_C);
- exit_status=0;
+ exit_status = (c == '?' && argc > 1 && !strchr(argv[1], c));
goto out;
case 'i': /* php info & quit */