|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12219 Command Line Arguments not being passed correctly
Submitted: 2001-07-17 20:31 UTC Modified: 2002-01-19 19:02 UTC
From: procacci at procacci dot net Assigned:
Status: Closed Package: URL related
PHP Version: 4.0.5 OS: Redhat 7.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
48 + 49 = ?
Subscribe to this entry?

 [2001-07-17 20:31 UTC] procacci at procacci dot net
./grab_meta 3

The following command line argument doesn't work because of the plus sign (+).  This also hold true when the second argument is enclosed in qutoes (") || (').
The plus sign (+) causes the second argument to split up into two smaller arguments.  BUG?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-17 22:33 UTC]
This is not a bug.
 [2001-07-18 10:21 UTC]
Zak, IIRC this _is_ a bug, or at least a misfeature. the TODO file says:

    * when used in standalone (skell-script like) mode don't urldecode
      arguments passed to php. right now it's not possible to say
        /usr/local/bin/php somescript.php dog+cat.txt
      as "dog+cat.txt" will arrive in php as "dog cat.txt". 

BTW, AFAICT the manual page you linked here contains _nothing_ about this particular issue (I even read all the notes on the page).

 [2001-07-18 11:37 UTC]
Ack! What was I doing? :) Thanks for catching this!

 [2002-01-19 19:02 UTC]
This issue is resolved by inclussion of
cli sapi in the current cvs. You can download the
latest cvs snapshot from

The new cli interpreter is built in $srcdir/sapi/cli.
make install will install it in $bindir/php
(/usr/local/bin/php by default).
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jan 29 14:03:34 2022 UTC