Bug #17293: Environment variables
| From: | cris at cdc dot unrc dot edu dot ar | Date: | Fri, 17 May 2002 17:34:28 +0000 |
| Subject: | Bug #17293: Environment variables | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-7946@lists.php.net to get a copy of this message | ||
From: cris@cdc.unrc.edu.ar
Operating system: SuSE Linux 8
PHP version: 4.2.1
PHP Bug Type: *General Issues
Bug description: Environment variables
I've upgraded PHP from 4.1.2 to 4.2.1 and all variables passed via url
parameters are empty.
For example:
http://mysite.com/detail.php?order=1&sid=15
inside detail.php $order and $sid are not set.
I have to modify all the pages to include things like:
$sid=$HTTP_GET_VARS['sid'];
and then sid get the desired value (15).
I've compiled this version exactly the same way as 4.1.2 and in the older
version it works ok (under SuSE 8).
Files & versions:
----------------
apache_1.3.24.tar.gz
c-client.tar.Z
mod_ssl-2.8.8-1.3.24.tar.gz
openssl-0.9.6c.tar.gz
php-4.2.1.tar.gz and php-4.1.2.tar.gz
-----------------------------------------------------------
The following is the script I used to compile:
# Instalación de apache (1ra. parte)
# ----------------------------------
tar zxf apache_1.3.24.tar.gz
cd apache_1.3.24
./configure --prefix=/webmail
cd ..
# Instalación de OpenSSL
# ----------------------
tar zxf openssl-0.9.6c.tar.gz
cd openssl-0.9.6c
./config
make
make test
make install
cd ..
# Instalación de Mod_SSL sin certificado
# --------------------------------------
tar zxf mod_ssl-2.8.8-1.3.24.tar.gz
cd mod_ssl-2.8.8-1.3.24
./configure \
--with-apache=../apache_1.3.24 \
--with-ssl=../openssl-0.9.6c \
--prefix=/webmail
cd ..
# Librería c-client para IMAP
# ---------------------------
tar zxf c-client.tar.Z
cd imap-2001.BETA.SNAP-0107221451/
make slx
cp c-client/c-client.a /usr/local/lib/c-client.a
cp c-client/rfc822.h /usr/local/include
cp c-client/mail.h /usr/local/include
cp c-client/linkage.h /usr/local/include
cd ..
# Instalación de php4
# -------------------
tar zxf php-4.2.1.tar.gz
cd php-4.2.1
./configure --with-mysql --with-apache=../apache_1.3.24
--enable-track-vars --with-imap --with-oci8
make
make install
cp php.ini-dist /usr/local/lib/php.ini
cd ..
cd apache_1.3.24
./configure --prefix=/webmail --activate-module=src/modules/php4/libphp4.a
--enable-module=ssl
make
make certificate TYPE=custom
make install
----------------------
And then in httpd.conf:
DirectoryIndex index.html index.php index.php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php3
--
Edit bug report at http://bugs.php.net/?id=17293&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17293&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17293&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17293&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17293&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17293&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17293&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17293&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17293&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17293&r=globals