|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13990 Command line Input Problems with '+'
Submitted: 2001-11-08 10:12 UTC Modified: 2002-04-10 19:29 UTC
From: mo at schlund dot de Assigned:
Status: Closed Package: Strings related
PHP Version: 4.1.0RC1 OS: GNU/Linux Debian SID
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mo at schlund dot de
New email:
PHP Version: OS:


 [2001-11-08 10:12 UTC] mo at schlund dot de
I use Debian/SIDs standard php4 as of 08/11/2001

Here is the Script to reproduce the Problem:


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

      Michael Bayer []


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-09 12:16 UTC]
Dupe of #12219
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 04:01:29 2023 UTC