diff options
| author | Andi Gutmans <andi@php.net> | 2000-06-15 22:46:17 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2000-06-15 22:46:17 +0000 |
| commit | 17ce56825dfe218d3920bce3bb33807b46880014 (patch) | |
| tree | 5c087b8e6da206fe214af338cb0418163cfe2bd1 | |
| parent | fcefeee914756eb4b96011c75fa6a12d5c8e1b5b (diff) | |
| download | php-git-17ce56825dfe218d3920bce3bb33807b46880014.tar.gz | |
- Beautify a bit
| -rw-r--r-- | sapi/cgi/cgi_main.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index b2e1cea31a..601efdd326 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -554,8 +554,8 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine CG(extended_info) = 1; break; case 'h': - case '?': - no_headers = 1; + case '?': + no_headers = 1; php_output_startup(); SG(headers_sent) = 1; php_cgi_usage(argv[0]); @@ -618,7 +618,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine } if (!SG(request_info).path_translated && argc > ap_php_optind) SG(request_info).path_translated = estrdup(argv[ap_php_optind]); - } else if (cgi) { + } else { /* If for some reason the CGI interface is not setting the PATH_TRANSLATED correctly, SG(request_info).path_translated is NULL. We still call php_fopen_primary_script, because if you set doc_root @@ -634,16 +634,6 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine if (cgi && !file_handle.handle.fp) { PUTS("No input file specified.\n"); -#if 0 /* this is here for debuging under windows */ - if (argc) { - i = 0; - php_printf("\nargc %d\n",argc); - while (i <= argc) { - php_printf("%s\n",argv[i]); - i++; - } - } -#endif php_request_shutdown((void *) 0); php_module_shutdown(); return FAILURE; @@ -665,7 +655,8 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine case PHP_MODE_STANDARD: php_execute_script(&file_handle CLS_CC ELS_CC PLS_CC); break; - case PHP_MODE_HIGHLIGHT: { + case PHP_MODE_HIGHLIGHT: + { zend_syntax_highlighter_ini syntax_highlighter_ini; if (open_file_for_scanning(&file_handle CLS_CC)==SUCCESS) { |
