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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 07:01:29 2024 UTC