Browse Source

allow other modes to work with -- correct

#original idea was to allow this *only* for PHP_MODE_STANDARD
experimental/new_ui_api
Marcus Boerger 24 years ago
parent
commit
f277bf0c5c
  1. 2
      sapi/cli/php_cli.c

2
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++;

Loading…
Cancel
Save