Received: (qmail 90542 invoked by uid 501); 7 Jun 2000 17:37:09 -0000 Message-Id: <20000607173709.90541.qmail@locus.apache.org> Date: 7 Jun 2000 17:37:09 -0000 From: Anton Fedorov Reply-To: anton@florin.ru To: submit@bugz.apache.org Subject: SetEnv doesn't pass environment to apache modules like php X-Send-Pr-Version: 3.110 >Number: 6157 >Category: mod_env >Synopsis: SetEnv doesn't pass environment to apache modules like php >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Jun 07 10:40:02 PDT 2000 >Closed-Date: Wed Jun 07 12:00:26 PDT 2000 >Last-Modified: Wed Jun 07 12:00:26 PDT 2000 >Originator: anton@florin.ru >Release: 1.3.12 >Organization: >Environment: Linux ace.florin.ru 2.2.13 #12 Thu Feb 10 17:25:26 MSK 2000 i686 unknown gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) Server Version: Apache/1.3.12 (Unix) PHP/4.0.0 >Description: I've got one question for you. When I use SetEnv directive in Virtual host section of httpd.conf all environmet correctly passes to all CGI, but invisible from .php scripts. I've built php as apache module. What's wrong? Server Version: Apache/1.3.12 (Unix) PHP/4.0.0 mod_ssl/2.6.4 P.S. I'm sorry for my bad English. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Wed Jun 7 12:00:25 PDT 2000 State-Changed-Why: That is correct, that is the way things work. If you want PHP to make the appropriate calls to make them visable to PHP code, then that is a PHP issue that we can do nothing about. Such environment variables do _NOT_ get magically set for random modules. >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]