[Mapserver-users] HELP! Bug in PHP 4.3.x ???

woodbri at swoodbridge.com woodbri at swoodbridge.com
Wed Feb 19 20:27:21 PST 2003


Hi all,

Has anyone run into this problem before or have any ideas on how to 
fix it? This is either a bug or I'm doing something wrong that is not 
obvious to me!

I built PHP 4.3.0 and PHP 4.3.1 on two different systems as CGI 
modules for mapserver and the PHP_SELF variable is trashed!!!!!

It looks like there is an off by one bug as it has an extra character 
in front of what should be the first character. Check out the 
following link:

http://209.113.211.219/web2/info.php

You will notice that all the images are broken because the phpinfo() 
function uses the value to reference itself and you can see it below 
in the PHP variables:

PHP_SELF
_SERVER["PHP_SELF"]

Here is how I configured it:

make clean
rm -f config.cache
./configure \
--enable-force-cgi-redirect \
--enable-discard-path \
--with-config-file-path=/etc/httpd/ \
--with-gd=/usr/local \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--with-freetype-dir \
--without-ttf \
--with-pdflib \
--with-mysql \
--with-regex=system \
--with-ming \
--enable-dbase \
--enable-dbx \
--enable-versioning 

make
cp sapi/cgi/php /var/www/cgi-bin/php
make install


-Steve W.



More information about the MapServer-users mailing list