httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: httpd process and the environment
Date Thu, 02 Apr 1998 23:33:40 GMT
On Thu, 2 Apr 1998, Jim Jagielski wrote:

> Marc Slemko wrote:
> > 
> > On Thu, 2 Apr 1998, Jim Jagielski wrote:
> > 
> > > This is kind of a "bleed through" from the PHP mailing list... Basically,
> > > with the PHP3 module included, the child httpd processes can have their
> > > environment (as defined as their environment variables) changed, deleted
> > > and added "at will" (the Apache variables are "protected")... Now, when
> > > this process forks off an external CGI, this CGI get's a clean
> > > environment from create_environment, right? There's no way for
> > > the CGI to get one that's been changed, is there?
> > 
> > Right.  However, certain other processes that are executed could.
> > Perhaps.  
> 
> mod_include does a call_exec, but it also does a create_environment
> as well... :/

Right, but take things like... mod_mime_magic trying to uncompress a file.

> 
> > 
> > I'm not sure I understand the point of letting PHP change the processes'
> > environment variables. 
> 
> Supposedly, this is because Oracle (and others) use env vars for their
> operation, so the PHP3 scripts need to be able to set/change these
> for that to work.
> 

Is this code being linked in as a library that needs the variables or how
does it get called?


Mime
View raw message