]>
Commit | Line | Data |
---|---|---|
fb98beff ER |
1 | --- PHP_5_3/sapi/cli/php_cli.c 2011/05/30 15:55:32 311599 |
2 | +++ PHP_5_3/sapi/cli/php_cli.c 2011/05/30 15:57:50 311600 | |
3 | @@ -799,7 +799,7 @@ | |
4 | request_started = 1; | |
5 | php_cli_usage(argv[0]); | |
6 | php_end_ob_buffers(1 TSRMLS_CC); | |
7 | - exit_status=0; | |
8 | + exit_status = (c == '?' && argc > 1 && !strchr(argv[1], c)); | |
9 | goto out; | |
10 | ||
11 | case 'i': /* php info & quit */ |