ID: 6509
Comment by: lewisluk at hotmail dot com
Reported By: nicod at inwind dot it
Status: Closed
Bug Type: Installation problem
Operating System: Linux Mandrake 7.1
PHP Version: 4.0.2
New Comment:
Is there any way to get parsing working WITHOUT turning on
register_globals?
Thank you!
Previous Comments:
------------------------------------------------------------------------
[2000-09-03 03:47:26] [EMAIL PROTECTED]
Turn register_globals on in your php.ini file
------------------------------------------------------------------------
[2000-09-03 03:41:07] nicod at inwind dot it
Every thing was working fine with v.4.0.1pl2, but when I upgraded PHP
to v.4.0.2 , the engine doesn't seem to be parsing HTTP GET and POST
values anymore.
Configure line:
./configure --with-pgsql --with-apxs --with-java
php.ini file the same as the php.ini-optimized featured in php 4.0.2
apache ver. 1.3.12
php compiled in dynamic module mode
=======================================
file put.php :
<FORM ACTION="get.php" METHOD=GET>
<INPUT TYPE=hidden NAME=pms VALUE="12">
<INPUT TYPE=SUBMIT NAME=submit VALUE=vai >
</FORM>
======================================
file get.php :
<?
echo "pms is =$pms# <BR>";
// prints unexpectectly: pms is =#
// while expecting: pms is =12#
$QUERY_STRING = getenv("QUERY_STRING");
echo "Query string is $QUERY_STRING <BR>";
// prints Query string is 12 *4_strange_chars* =vai
phpinfo();
// the field HTTP_GET_VARS["pms"] seems to be correct: 12
// the field HTTP_GET_VARS["submit"] seems to be correct: vai
// the field HTTP_SERVERVARS["QUERY_STRING"] seems to be INcorrect:
pms=12 *4_strange_chars*=vai
?>
==========================
Thank you!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=6509&edit=1