Bug #13990 Updated: Command line Input Problems with '+'
| From: | sniper@php.net | Date: | Wed, 10 Apr 2002 23:29:55 +0000 |
| Subject: | Bug #13990 Updated: Command line Input Problems with '+' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-4606@lists.php.net to get a copy of this message | ||
ID: 13990
Updated by: sniper@php.net
Reported By: mo@schlund.de
-Status: Duplicate
+Status: Closed
Bug Type: Strings related
Operating System: GNU/Linux Debian SID
PHP Version: 4.1.0RC1
Previous Comments:
------------------------------------------------------------------------
[2001-11-09 12:16:37] sander@php.net
Dupe of #12219
------------------------------------------------------------------------
[2001-11-08 10:12:59] mo@schlund.de
I use Debian/SIDs standard php4 as of 08/11/2001
Here is the Script to reproduce the Problem:
<?
var_dump($argv);
?>
When I call the script like this:
nsn@nsn:~ > php4 -q test.php a+b
var_dump tells me I gave the Script 2 Parameters (a and b)
Actually I gave it 1 Parameter ('a+b').
I think PHP url-decodes the argvs before interpretion, but when I call
the Script like this:
nsn@nsn:~ > php4 -q test.php a%2bb (with %2b being the url-endoded
String for +) PHP does not url-decode the String properly.
As it seems it is not possible to send a string containing the
character '+' to PHP on the command line.
please excuse my rather bad english
regards
Michael Bayer [mo@schlund.de]
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=13990&edit=1