ID:               23868
 Updated by:       [EMAIL PROTECTED]
 Reported By:      excalibur at hub dot org
-Status:           Open
+Status:           Bogus
-Bug Type:         Unknown/Other Function
+Bug Type:         Apache related
 Operating System: FreeBSD 4.8-STABLE
 PHP Version:      4.3.1
 New Comment:

It's definately not bug in PHP. It's an Apache bug at best..
(the _SERVER is filled with data coming via Apache API)



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

[2003-05-28 20:32:17] excalibur at hub dot org

Hi All, 

 Got an issue with PHP 4.3.1 that has driven me up one wall and down
the other :> I managed to trace it back to the PHP global variables
causing me the problem, here's what's happend:

 I have a number of webservers, some run on the default port 80, others
on port 81 or more. But using this code:

 $test = $_SERVER['SERVER_PORT'];
 var_dump($test);

 prints out 80 each time, even if the apache server is natively running
on port 81. 

 for instance, in the phpinfo output on a URL of:

 - http://webmail.test.com:81

  I get:

 _SERVER["SERVER_PORT"] | 80 

 as the result...

 I'm running a stock freebsd build of Apache 1.3.27 with modssl
compiled in:

 - apache+mod_ssl-1.3.27+2.8.14

 a stock compile of PHP 4.3.1, with the config line of:

'./configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc' '--enable-versioning'
'--with-regex=system' '--without-gd' '--without-mysql' '--with-zlib'
'--with-bz2=/usr' '--with-mcrypt=/usr/local' '--with-imap=/usr/local'
'--with-mysql=/usr/local' '--with-pgsql=/usr/local'
'--with-ldap=/usr/local' '--with-expat-dir=/usr/local'
'--with-dom=/usr/local' '--enable-ftp' '--with-gettext=/usr/local'
'--with-pspell=/usr/local' '--enable-mbstring' '--with-mcal=/usr/local'
'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm'
'--enable-trans-sid' '--prefix=/usr/local' 'i386-portbld-freebsd4.8'

 no other components are built in at this point, just a bare native
compile on everthing and a very simple script:

 <?php
  $test = $_SERVER["SERVER_PORT"];
  var_dump($test);
 ?>

 please let me know if I can provide anything else..
 

 



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


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

Reply via email to