php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6509 Parsing HTTP GET values (with apache)
Submitted: 2000-09-03 03:41 UTC Modified: 2000-09-03 03:47 UTC
From: nicod at inwind dot it Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.2 OS: Linux Mandrake 7.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nicod at inwind dot it
New email:
PHP Version: OS:

 

 [2000-09-03 03:41 UTC] 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!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-03 03:47 UTC] zak@php.net
Turn register_globals on in your php.ini file
 [2003-02-18 09:11 UTC] lewisluk at hotmail dot com
Is there any way to get parsing working WITHOUT turning on register_globals?

Thank you!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 23:00:03 2025 UTC