#29799 [Opn]: extract performs urldecode?
| From: | mez@php.net | Date: | Wed, 29 Dec 2004 17:44:36 +0000 |
| Subject: | #29799 [Opn]: extract performs urldecode? | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969365676@lists.php.net to get a copy of this message | ||
ID: 29799
Updated by: mez@php.net
Reported By: cpuidle at gmx dot de
Status: Open
Bug Type: Documentation problem
Operating System: WinXP SP2
PHP Version: 5.0.1
New Comment:
It's true that nowhere is it mentioned that any variables from outside
PHP will be automatically urldecode()'ed... but isn't this expected
behaviour? When you pass a variable, whether through POST, GET or
Cookies, don't you want that variable to be as it was sent, rather than
encoded?
I know this might be confusing for people coming from other languages
(such as Perl), but doesn't it make sense to have it that way?
Previous Comments:
------------------------------------------------------------------------
[2004-08-23 17:04:04] cpuidle at gmx dot de
Description:
------------
Running this code:
extract($_REQUEST);
the resulting (global) variables are url-decoded. I found that
$_REQUEST is already url-decoded and couldn't find any documentation?
Reproduce code:
---------------
.
Expected result:
----------------
make clean when url-decoding is performed.
Actual result:
--------------
.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29799&edit=1