RE: [PHP-DEV] php_variables patch
| From: | Shane Caraveo | Date: | Sun, 13 Oct 2002 08:38:08 +0000 |
| Subject: | RE: [PHP-DEV] php_variables patch | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-89405@lists.php.net to get a copy of this message | ||
Actually, I'm not sure when I'll be able to return to this so I'll just commit it since this is all working, and people can complain later if they want.
Shane
-------------------------------------------------------------------
I'm working on getting mod_fastcgi/apache2/php4.3 to work together
smoothly. One thing mod_fastcgi does is, when it starts the fastcgi
processes (php in this instance) very little environment is given to the
process. The environment is sent via the fastcgi protocol for each
request. To deal with this a hacky overwriting of the environment was
done on every request. Other than being a hack, it was also a memory
leak. I've fixed that by introducing a way for me to override the
php_import_environment_variables function in PHP. This should introduce
no side effects for anyone, but I want to pass the patch by dev before
commiting. I've finished my patches to cgi_main.c, but those patches
require this.
Shane
Index: php_variables.c
===================================================================
RCS file: /repository/php4/main/php_variables.c,v