[PHP] Changes from 5.0.4 => 5.0.5 (_SERVER variabes not defined).

Sean O Sullivan seanos at seanos.net
Mon Nov 14 15:32:07 UTC 2005


Hello,

I know this is probably more suited to the PHP list, however no 
responses from there, so curious if anyone here came across similar (and 
hopefully found a solution).

Was upgrading PHP-5.0.3 => 5.0.5
Apache version : httpd-2.0.46-54.ent
Distro : RHEL3 U2

configure switches :
./configure --with-zlib --without-gd --without-gdbm
--with-oracle=/opt/oracle/app/oracle/product/9.2.0/ --enable-sigchild
--enable-force-cgi-redirect --enable-memory-limit --enable-ftp
--enable-xml --with-apxs2=/usr/sbin/apxs --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
--libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var
--mandir=/usr/share/man --infodir=/usr/share/info
--with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d

I came across a problem where in 5.0.3 I had a series of PHP Variables
defined ( _SERVER & _ENV )
By and large, these were the same as the Environment variables.
e.g.

HOSTNAME => myhostname
SHELL => /bin/bash
TERM => xterm

_SERVER["HOSTNAME"] => myhostname
_SERVER["SHELL"] => /bin/bash
_SERVER["TERM"] => xterm

(just to give a brief example).

However, these were not defined in PHP-5.0.5 - I then tried PHP-5.0.4 to
see if affected this too, which it didn't.

So there is some change in PHP between 5.0.4 & 5.0.5, I'd be grateful
for any suggestions/ideas in regards to this matter.

Regards,

Sean O Sullivan




More information about the redhat-list mailing list