#30623 [NEW]: Returns a wrong port info($_SERVER["SERVER_PORT"])

From: Date: Sat, 30 Oct 2004 17:18:10 +0000
Subject: #30623 [NEW]: Returns a wrong port info($_SERVER["SERVER_PORT"])
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-68500@lists.php.net to get a copy of this message
From: artemsd at rambler dot ru Operating system: Windows 2000 sp4 PHP version: 4.3.9 PHP Bug Type: *Web Server problem Bug description: Returns a wrong port info($_SERVER["SERVER_PORT"]) Description: ------------ PHP is sure, that web-server listens 80 port, but it is wrong. This bug is only by PHP 4, by PHP 5 this is correct. From phpinfo(): HTTP_HOST *.dyndns.org:81 ---- SERVER_PORT 80 Reproduce code: --------------- $serverPort = $_SERVER["SERVER_PORT"];//80, but must be 81 Expected result: ---------------- $serverPort = 81; Actual result: -------------- $serverPort = 80; -- Edit bug report at http://bugs.php.net/?id=30623&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30623&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30623&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30623&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30623&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30623&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30623&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30623&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30623&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30623&r=support Expected behavior: http://bugs.php.net/fix.php?id=30623&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30623&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30623&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30623&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30623&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30623&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30623&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30623&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30623&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30623&r=mysqlcfg

« previous php.bugs (#68500) next »