|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10135 Problem(?) with environment variables when running as module
Submitted: 2001-04-03 07:52 UTC Modified: 2002-02-03 07:18 UTC
From: bogdan at itconsulting dot ro Assigned:
Status: No Feedback Package: Gettext related
PHP Version: 4.0.4pl1 OS: Win 2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
46 - 22 = ?
Subscribe to this entry?

 [2001-04-03 07:52 UTC] bogdan at itconsulting dot ro
The ideea is that when I run php as an Apache module, it is impossible to change the value of an environment variable.
I don't know if this is the way it's supposed to work or it's a bug

If I run it as CGI I don't have this problem,of course, it's a new process for each request, and the environment doesn't have the variable already set.

In fact what I want is to set the LANG environment variable for gettext to work, and different requests, might need to set different languages.

setlocale doesn't work for gettext.

Does anybody has any ideea ??


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-13 07:07 UTC]
Does this happen under 4.1.1?
 [2002-02-03 07:18 UTC]
No feedback was provided for this bug, so it is being suspended.
If you are able to provide the information that was requested,
please do so and change the status of the bug back to "Open".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Oct 02 14:01:25 2023 UTC