From d26abbcdc9b2decf18e5c8b33ae5be8a08d0d368 Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Thu, 29 Jun 2000 13:34:59 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'php_4_0_1pl1'. --- sapi/cgi/cgi_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sapi') diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index f3b91f0ffe..9cbcb2c9a6 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -489,7 +489,10 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine zend_llist_init(&global_vars, sizeof(char *), NULL, 0); if (!cgi) { /* never execute the arguments if you are a CGI */ - SG(request_info).argv0 = NULL; + if (!SG(request_info).argv0) { + free(SG(request_info).argv0); + SG(request_info).argv0 = NULL; + } while ((c = ap_php_getopt(argc, argv, "c:d:z:g:qvisnaeh?vf:")) != -1) { switch (c) { case 'f': -- cgit v1.2.1