diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2011-05-30 15:57:50 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2011-05-30 15:57:50 +0000 |
commit | f5779d5e16d50d679cd9c959293db1bb8b8ae94c (patch) | |
tree | 3092a0cab2b4d85b06d7cbbc6c83c9159434cf21 /sapi/cli/php_cli.c | |
parent | 9392b9cd73a2e9bf438f92b0c91770e31e2bf00c (diff) | |
download | php-git-f5779d5e16d50d679cd9c959293db1bb8b8ae94c.tar.gz |
Fixed bug #52496 (Zero exit code on option parsing failure).
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 2 |
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 */ |