[PHP-DOC] #18566 [Fbk]: comand line argument parsing with + From: goba <email protected>
Date: 08/13/02

 ID: 18566
 Updated by: goba <email protected>
 Reported By: goba <email protected>
 Status: Feedback
 Bug Type: Documentation problem
 Operating System: Windows
 PHP Version: 4.2.1
 New Comment:

I tested this with the CGI one, probably it's not a problem with the
CLI.

Previous Comments:
------------------------------------------------------------------------

[2002-08-13 07:17:43] sander <email protected>

Is this still valid with the CLI? Or are you talking about the CGI
executable?
(Can't reproduce it with the CLI on Linux)

------------------------------------------------------------------------

[2002-07-25 11:41:21] goba <email protected>

The same effect is reproduceable with:

    php test.php a=b=c
    php test.php a;b;c

Goba

------------------------------------------------------------------------

[2002-07-25 11:35:56] goba <email protected>

I have tries the following script (test.php):

    <?php var_dump($argv); ?>

With:

    php test.php a b c

and the results are:

    array(4) {
      [0]=>
      string(8) "test.php"
      [1]=>
      string(1) "a"
      [2]=>
      string(1) "b"
      [3]=>
      string(1) "c"
    }

What was new to me, is that

    php test.php a+b+c

produces the same ;) So if this is intentional,
then it should be documented at least ;)

------------------------------------------------------------------------

-- 
Edit this bug report at http://bugs.php.net/?id=18566&edit=1

-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php