php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17662 getenv() Apache variables not available
Submitted: 2002-06-09 02:05 UTC Modified: 2002-09-24 01:10 UTC
Votes:7
Avg. Score:4.1 ± 1.5
Reproduced:7 of 7 (100.0%)
Same Version:2 (28.6%)
Same OS:5 (71.4%)
From: garth at cybernode dot com Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.2.3 - 200207251200 OS: SuSE 7.2
Private report: No CVE-ID: None
 [2002-06-09 02:05 UTC] garth at cybernode dot com
This seems to be related to Closed Bug #12691

Just compiled Apache 2.0.36 and PHP 4.2.1.  getenv(_ANYTHING_) returns nothing.  Variables are set and available as $_SERVER[_ANYTHING_].  phpinfo() shows no section starting with 'Apache Environment'.

PHP 4.2.1 configuration line:
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr --enable-sysvshm --enable-sysvsem \
--enable-xml --enable-wddx \
--with-config-file-path=/etc/apache \
--with-regex=system --with-tsrm-pthreads --with-imap \
--with-ldap --with-gd=/usr/local/src/gd-1.8.4 \
--with-png-dir=/usr/local/src/libpng-1.2.2 \
--with-jpeg-dir=/usr/local/src/jpeg-6b --with-zlib \
--disable-debug --enable-track-vars \
--enable-magic-quotes --enable-bcmath \
--with-gettext --enable-ftp --with-db2 \
--with-curl=/usr/local/lib \
--withpfpro=shared,/usr/local/verisign/payflowpro/linux/lib \
--with-openssl=/usr/local/ssl

Apache 2.0.36 configuration line:
./configure --prefix=/usr/local/apache2 \
--with-ssl=/usr/local/ssl \
--with-mpm=prefork --with-program-name=httpsd \
--enable-modules="speling rewrite ssl so" \
--enable-mime-magic --enable-unique-id


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-23 22:09 UTC] iliaa@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.

The bug has been fixed in CVS, not the STABLE branch. You need to checkout 4.3.0-dev from CVS or download 
http://snaps.php.net/php4-latest.tar.gz
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC