php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #789 GET badly interpreted on Win95+Apache1.3.1
Submitted: 1998-09-25 15:20 UTC Modified: 1998-10-03 16:06 UTC
From: pg at imtel dot com Assigned:
Status: Closed Package: Other
PHP Version: 3.0.4 OS: Windows95
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: pg at imtel dot com
New email:
PHP Version: OS:

 

 [1998-09-25 15:20 UTC] pg at imtel dot com
index.php3?abc+def+a=b&c=d

<?
echo "1:".$argv[0]."<br>";
echo "2:".$argv[1]."<br>";
echo "3:".$a."<br>";
echo "4:".$c."<br>";
?>

--------
1:abc
2:def
3:
4:d

I must use index.php3?abc+def+&a=b&c=d

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-10-03 16:06 UTC] shane
Not a bug.

This is the way php works.  All spaces are turned into underscores, so abc+def+a=b becomes the
variable abc_def_a with a value of b.

You are right though, if you want it different, you must use abc+def+&a=b&c=d

However, if you want abc and def to be two seperate values, you have to put an & between them also.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 14:01:36 2025 UTC