[php-maint] Bug#481317: php5-cgi: REMOTE_ADDR contains IPv6-style with http and IPv4-style with https

Jeremy Lal kapouer at melix.org
Thu May 15 08:51:25 UTC 2008


Package: php5-cgi
Version: 5.2.6-1
Severity: normal

Using php5-cgi with lighttpd(fastcgi) i get :
echo $_SERVER['REMOTE_ADDR'];
> ::ffff:127.0.0.1
and when accessing the page with https :
> 127.0.0.1
I don't know wether it's related to lighttpd or php5,
but i guess it's not a normal behaviour ?



-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-cgi depends on:
ii  libbz2-1.0             1.0.5-0.1         high-quality block-sorting file co
ii  libc6                  2.7-11            GNU C Library: Shared libraries
ii  libcomerr2             1.40.8-2          common error description library
ii  libdb4.6               4.6.21-8          Berkeley v4.6 Database Libraries [
ii  libkrb53               1.6.dfsg.3-2      MIT Kerberos runtime libraries
ii  libmagic1              4.24-2            File type determination library us
ii  libpcre3               7.6-2             Perl 5 Compatible Regular Expressi
ii  libssl0.9.8            0.9.8g-10         SSL shared libraries
ii  libxml2                2.6.32.dfsg-2     GNOME XML library
ii  mime-support           3.40-1.1          MIME files 'mime.types' & 'mailcap
ii  php5-common            5.2.6-1           Common files for packages built fr
ii  ucf                    3.006             Update Configuration File: preserv
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

php5-cgi recommends no packages.

-- no debconf information






More information about the pkg-php-maint mailing list