From: Marcus Boerger Date: Tue, 26 Mar 2002 14:43:57 +0000 (+0000) Subject: allow other modes to work with -- correct X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~1029 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f277bf0c5c83236fc71d36bff342f14421d3d659;p=php allow other modes to work with -- correct #original idea was to allow this *only* for PHP_MODE_STANDARD --- diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 7a0bf11aea..17522d4cf5 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -554,7 +554,7 @@ int main(int argc, char *argv[]) CG(interactive) = interactive; /* only set script_file if not set already and not in direct mode and not at end of parameter list */ - if (argc > ap_php_optind && !script_file && behavior==PHP_MODE_STANDARD && !strcmp(argv[ap_php_optind-1],"--")) { + if (argc > ap_php_optind && !script_file && behavior!=PHP_MODE_CLI_DIRECT && !strcmp(argv[ap_php_optind-1],"--")) { no_headers = 1; script_file=argv[ap_php_optind]; ap_php_optind++;