ID:               40579
 User updated by:  ruslan dot kyrychuk at gmail dot com
 Reported By:      ruslan dot kyrychuk at gmail dot com
 Status:           Bogus
 Bug Type:         *Web Server problem
 Operating System: Windows 2003
 PHP Version:      5.2.1
 New Comment:

Yes, mono on windows produce same results - so it not PHP.

Workaround was alredy written

RewriteRule ^(.+)$ index.php [E=PORT:%{SERVER_PORT},QSA,L]

then read

$_SERVER['REDIRECT_PORT']


Previous Comments:
------------------------------------------------------------------------

[2009-05-25 17:15:47] ras...@php.net

This is not a PHP issue.  The Web server sets these variables.  If they
are set incorrectly, file a bug with the web server folks.  PHP doesn't
touch these at all, we just give you access to whatever information the
web server provides.

------------------------------------------------------------------------

[2009-05-25 17:08:06] phpbugs at olliholliday dot co dot uk

I have the same problem.

This bug is reproducible and over a year old, if it's not going to be 
fixed is there at least a workaround?

------------------------------------------------------------------------

[2009-05-09 21:24:44] vsamwarcraft3 at hotmail dot com

I have the same problem with the same symptoms. I am running a server
on Ubuntu and an server on Debian.

------------------------------------------------------------------------

[2009-03-18 13:39:51] peter at lvp-media dot com

This isn't a PHP-specific bug, it seems to be a problem within
mod_rewrite or Apache itself. I ran into this problem as well, but was
able to reproduce it with Perl and C scripts. For completeness, I'm
running PHP 5.3-dev on Linux with Apache 2.2.

------------------------------------------------------------------------

[2009-01-26 15:06:38] tim at timloram dot me dot uk

I am experiencing this issue with exact same symptoms. Having used
mod_rewrite to redirect incoming requests to central gateway script,
$_SERVER['SERVER_PORT'] is always reading '80' even if my inital URL was
http://abc.com:86

Any ideas?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/40579

-- 
Edit this bug report at http://bugs.php.net/?id=40579&edit=1

Reply via email to