#37533 [NEW]: $_GET variable transform "+" in spaces

From: Date: Sat, 20 May 2006 03:42:24 +0000
Subject: #37533 [NEW]: $_GET variable transform "+" in spaces
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-97396@lists.php.net to get a copy of this message
From:             mails at mail dot pt
Operating system: winXP
PHP version:      4.4.2
PHP Bug Type:     URL related
Bug description:  $_GET variable transform "+" in spaces

Description:
------------
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:

die($_GET["id"]);



Expected result:
----------------
and if i pass this url:

http://localhost/page.php?id=2983+09283

the result should be is "2983+09283"

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

-- 
Edit bug report at http://bugs.php.net/?id=37533&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37533&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37533&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37533&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37533&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=37533&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37533&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37533&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37533&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37533&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37533&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=37533&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=37533&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37533&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37533&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37533&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37533&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37533&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37533&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37533&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37533&r=mysqlcfg


Thread (3 messages)

« previous php.bugs (#97396) next »