Received: (qmail 11385 invoked by uid 501); 3 Dec 2000 00:08:49 -0000 Message-Id: <20001203000849.11384.qmail@locus.apache.org> Date: 3 Dec 2000 00:08:49 -0000 From: Mike Machado Reply-To: mike@innercite.com To: submit@bugz.apache.org Subject: CGI script cannot modify the environment used for SSIs X-Send-Pr-Version: 3.110 >Number: 6923 >Category: mod_cgi >Synopsis: CGI script cannot modify the environment used for SSIs >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sat Dec 02 16:10:01 PST 2000 >Closed-Date: Mon Dec 04 06:11:52 PST 2000 >Last-Modified: Mon Dec 04 06:11:52 PST 2000 >Originator: mike@innercite.com >Release: 1.3.14 >Organization: >Environment: Linux 2.2.16 >Description: When I change an evironment variable in a CGI called via #include virtual or #exec cgi it cannot be seen with #echo or the #if, #elsif etc, control commands. >How-To-Repeat: >Fix: Pass the CGI a reference instead of a copy >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: fanf State-Changed-When: Mon Dec 4 06:11:50 PST 2000 State-Changed-Why: This is a fundamental limitation of CGIs. They exist in a separate process and there is no mechanism for passing changed environment variables back to the parent web server. It is not possible to do what you want the way you want to do it. >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]