summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Skopal <riffraff@php.net>1999-09-06 01:33:13 +0000
committerJakub Skopal <riffraff@php.net>1999-09-06 01:33:13 +0000
commitcb25b1222e2b84e49022463e01d8a1f642940438 (patch)
treeb0368849e9f681408e43f3a3746215fde0b6d7d7
parent5cc16d86b069bcc58dda02a96dc50a10e6d25f27 (diff)
downloadphp-git-cb25b1222e2b84e49022463e01d8a1f642940438.tar.gz
Corrected the argument-list for getopt. -c expects argument.
-rw-r--r--cgi_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi_main.c b/cgi_main.c
index e6241ea09d..ae435e39e8 100644
--- a/cgi_main.c
+++ b/cgi_main.c
@@ -305,7 +305,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
if (!cgi) { /* never execute the arguments if you are a CGI */
request_info.php_argv0 = NULL;
- while ((c = getopt(argc, argv, "cd:qvisnaeh?vf:")) != -1) {
+ while ((c = getopt(argc, argv, "c:d:qvisnaeh?vf:")) != -1) {
switch (c) {
case 'f':
if (!cgi_started){