#19095 [NEW]: getenv() returns NULL

From: Date: Sun, 25 Aug 2002 19:30:15 +0000
Subject: #19095 [NEW]: getenv() returns NULL
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17801@lists.php.net to get a copy of this message
From: maciek@mgt.pl Operating system: Linux 2.4.19 PHP version: 4CVS-2002-08-25 PHP Bug Type: PHP options/info functions Bug description: getenv() returns NULL 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]# -- Edit bug report at http://bugs.php.net/?id=19095&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19095&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19095&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19095&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19095&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19095&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19095&r=support Expected behavior: http://bugs.php.net/fix.php?id=19095&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19095&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19095&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19095&r=globals

« previous php.bugs (#17801) next »