From: Zeev Suraski Date: Tue, 8 May 2001 00:51:11 +0000 (+0000) Subject: $argc was off by one in -f (fix bug #9289) X-Git-Tag: php-4.0.6RC1~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6cd3b987b81efa8f71d9ca766bce1c77f8c22e3b;p=php $argc was off by one in -f (fix bug #9289) --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 7b91edc0b8..c2cb43b212 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -630,7 +630,9 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine *s = '\0'; /* we are pretending it came from the environment */ if (script_file) { strcpy(s, script_file); - strcat(s, "+"); + if (ap_php_optind