php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19095 getenv() returns NULL
Submitted: 2002-08-25 15:30 UTC Modified: 2002-09-23 07:26 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: maciek at mgt dot pl Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4CVS-2002-08-25 OS: Linux 2.4.19
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: maciek at mgt dot pl
New email:
PHP Version: OS:

 

 [2002-08-25 15:30 UTC] maciek at mgt dot pl
I'm using the newest CVS HTTPD 2.0.41 and the newest CVS PHP 4.2.3.
I've configured both httpd and php with minimal options.
The problem is when i try ty use getenv() function.
When I use print($REMOTE_ADDR) everything is ok.
When I use print(getenv("REMOTE_ADDR")) nothing shows.
Is this php related problem or httpd?
BTW the problem is the same with HTTPD 2.0.40 and PHP 4.2.2 and below.

Here are my configuration options:
[root@challenger httpd-2.0.40]# cat konfiguruj 
./configure \
        --prefix=/usr/local/apache2 \
        --with-mpm=prefork \
        --enable-modules=all \
        --enable-mods-shared=all \
        --enable-suexec \
        --with-suexec-caller=apache \
        --with-suexec-userdir=public_html \
        --with-suexec-uidmin=500 \
        --with-suexec-gidmin=100 \
        --with-suexec-safepath="/usr/local/bin:/usr/bin:/bin" \
        --enable-ssl \
        --enable-cache \
        --enable-disk-cache \
        --enable-mem-cache \
        --enable-file-cache
[root@challenger httpd-2.0.40]# 

[root@challenger php4]# 
./configure \
        --prefix=/usr/local/apache2/php \
        --with-apxs2=/usr/local/apache2/bin/apxs \
        --with-config-file-path=/usr/local/apache2/php/etc \
        --enable-versioning \
        --enable-track-vars=yes \
        --enable-trans-sid \
        --enable-url-includes \
        --enable-sysvshm=yes \
        --enable-sysvsem=yes \
        --enable-safe-mode \
        --enable-ftp \
        --with-zlib \
        --with-mysql \
        --with-pgsql \
        --with-ldap \
        --with-gd \
        --with-bz2 \
        --with-db3 \
        --with-openssl \
        --with-gettext \
        --with-jpeg --with-jpeg-dir=/usr/lib \
        --with-png  --with-png-dir=/usr/lib \
        --with-xpm  --with-xpm-dir=/usr/lib \
        --with-freetype  --with-freetype-dir=/usr/lib  
[root@challenger php4]# 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-22 19:33 UTC] iliaa@php.net
Dupe of #17662
 [2002-09-23 07:26 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 23:01:32 2024 UTC