|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37533 $_GET variable transform "+" in spaces
Submitted: 2006-05-20 03:42 UTC Modified: 2006-05-20 10:56 UTC
From: mails at mail dot pt Assigned:
Status: Not a bug Package: URL related
PHP Version: 4.4.2 OS: winXP
Private report: No CVE-ID: None
 [2006-05-20 03:42 UTC] mails at mail dot pt
The $_GET[] variable has the values of the fields passed in the queryString, but it's normal if the value of one field has the symbole '+' the result of $_GET[] would have a 'space' replacing it ? 
It's not report in the manual that the $_GET do this kind of thing.

Reproduce code:
If my page.php have this code:


Expected result:
and if i pass this url:


the result should be is "2983+09283"

Actual result:
the result should be is "2983 09283"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-20 07:08 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

 [2006-05-20 10:56 UTC] mails at mail dot pt
Thanks johannes for you quikly anwser, but i already tried to check the manual, could you tell me better where i can get more information about this specification ?
Thx a lot
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 01 04:03:40 2021 UTC