Bug 75712 - php4 with apache 2, getenv(ANYTHING) returns blank string
Summary: php4 with apache 2, getenv(ANYTHING) returns blank string
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: php   
(Show other bugs)
Version: 8.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Joe Orton
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2002-10-11 13:07 UTC by Thais Smith
Modified: 2007-04-18 16:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-11-02 22:31:58 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2003:017 high SHIPPED_LIVE : Updated PHP packages available 2003-01-21 05:00:00 UTC

Description Thais Smith 2002-10-11 13:07:16 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3; Linux)

Description of problem:
See http://bugs.php.net/bug.php?id=17662

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Make php page containing <?php getenv(REQUEST_METHOD) ?>
2. Load it
3. See it no workee

Additional info:

This is apparently fixed in CVS. It tends to break rather a log of PHP though :-/

Comment 1 Carl T. Miller 2002-11-02 22:31:52 UTC
I don't know if this is any help, but I found that by rewriting a line I was
able to make a work-around.


$host=gethostbyaddr($_SERVER ['REMOTE_ADDR']);

Comment 2 Joe Orton 2002-12-04 08:46:26 UTC
getenv() is fixed in php-4.2.2-10 - thanks for the report.

Comment 3 Mark J. Cox 2003-02-05 08:40:18 UTC
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.