ID: 19095
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Duplicate
Bug Type: Apache2 related
Operating System: Linux 2.4.19
PHP Version: 4CVS-2002-08-25
New Comment:
Dupe of #17662
Previous Comments:
------------------------------------------------------------------------
[2002-08-25 15:30:14] [EMAIL PROTECTED]
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 this bug report at http://bugs.php.net/?id=19095&edit=1