Possible mod_perl incompatibility [message #21229] |
Mon, 22 November 2004 19:31 |
Gribnif
Messages: 82 Registered: December 2003
Karma: 0
|
Member |
|
|
In researching a problem I'm having on one server with Apache 2.x processes that seg fault intermittently, I came across the following:
http://www.phpbuilder.com/lists/php-install/2003092/0018.php
Per the instructions, I replaced FUD's use of putenv() with apache_setenv(). While it didn't help my seg fault problem, I thought you might want to consider doing the same in the official distribution. The only place I found putenv() was in users.inc.
|
|
|
Re: Possible mod_perl incompatibility [message #21230 is a reply to message #21229] |
Mon, 22 November 2004 20:53 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
This is a rather nasty situations where there is no proper fix. Using apache_setenv() does not work because when changing the timezone env variable you also need to call (lib C function) tzset() to make that timezone usable. This function ONLY reads the system environment setting and ignores the apache one. This means that calling apache_setenv() does absolutely nothing and might as well not be called at all.
The "fix" I've added is an admin option that allows disabling of the putenv() call for the people who encounter the same problem as you.
The official patch can be found here:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=3160
FUDforum Core Developer
|
|
|
|
|