summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-03-26 14:43:57 +0000
committerMarcus Boerger <helly@php.net>2002-03-26 14:43:57 +0000
commitf277bf0c5c83236fc71d36bff342f14421d3d659 (patch)
tree9edde23bedfed256129da91737ffab43fd69966d /sapi/cli/php_cli.c
parenta2631c1f1da4f67d8825e63f4487468b191dfedc (diff)
downloadphp-git-f277bf0c5c83236fc71d36bff342f14421d3d659.tar.gz
allow other modes to work with -- correct
#original idea was to allow this *only* for PHP_MODE_STANDARD
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 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++;