DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=38408>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38408 Summary: SSI environment vars not set in spawned processes Product: Apache httpd-2 Version: 2.2.0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: mod_include AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Apache 2.2 uses "lazy" evaluation of the SSI specific environment variables LAST_MODIFIED, DATE_GMT, DATE_LOCAL, etc. These variables are initialized with a pointer to a particular null string (LAZY_VALUE). If mod_include references one of these variables and if its value is LAZY_VALUE, then mod_include sets the variable to its actual value before using it. When SSI spawns processes via <!--#exec ... --> or <!--#include virtual= ... --> nothing is done to evaluate SSI variables that are still set to LAZY_VALUE, so These variables end up in the environment of the spawned process with null string values. For example, suppose you have a CGI program named foo.cgi that uses LAST_MODIFIED and suppose you have this in a html document: <!--#include virtual="foo.cgi"--> LAST_MODIFIED is the null string <!--#echo var="LAST_MODIFIED"--> mod_include evaluates LAST_MODIFIED <!--#include virtual="foo.cgi"--> Now LAST_MODIFIED has correct value -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
