php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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:

<?
    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]

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-09 12:16 UTC] sander@php.net
Dupe of #12219
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 06:01:29 2024 UTC