|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67755 Malformation HTTP GET request in array form with equal sign
Submitted: 2014-08-04 08:01 UTC Modified: 2014-08-04 08:15 UTC
From: fethi dot kus at tribal-im dot com Assigned:
Status: Not a bug Package: Streams related
PHP Version: 5.5.15 OS: Centos 6.5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
18 + 47 = ?
Subscribe to this entry?

 [2014-08-04 08:01 UTC] fethi dot kus at tribal-im dot com
An HTTP GET request in array form with equal sign gives an unexpected result.

Test script:
//Http Request


Expected result:
    [query1] => Array
            [=] => 1


Actual result:
    [query1_] => ]=1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-08-04 08:15 UTC]
-Status: Open +Status: Not a bug
 [2014-08-04 08:15 UTC]
The HTTP/URL specs do not give special consideration for the [] array syntax that PHP (and a couple other languages) support. = is a reserved character and if needed for something other than its reserved purpose then it must be percent-encoded.

As for the underscore, PHP starts with "query1[" as the key and it replaces the '[' with an underscore for historical purposes.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Aug 14 05:01:25 2020 UTC