Re: [users@httpd] Environment variable set by "apr_env_set()" not accesible by C function "getenv()" within CGI program

2016-03-19 Thread obsd
On Thu, Mar 17, 2016 at 8:47 PM, Eric Covener wrote: > On Thu, Mar 17, 2016 at 3:38 PM, wrote: >> Hi, >> >> I have an Apache modul where I set an environment variable: >> >> apr_env_set("FOO", "BAR", ...); >> >> This variable is accesible by PHP: >> >> > print(getenv("FOO")); // --> BAR >> ?>

[users@httpd] Environment variable set by "apr_env_set()" not accesible by C function "getenv()" within CGI program

2016-03-18 Thread obsd
Hi, I have an Apache modul where I set an environment variable: apr_env_set("FOO", "BAR", ...); This variable is accesible by PHP: BAR ?> but not by a simple CGI program written in C: #include #include int main(int argc, char* argv[]) { printf("Content-Type: text/html;charset=utf-8\n\