#37883 [Opn->Bgs]: incorrect handling of double quotes in argv parameters
| From: | tony2001@php.net | Date: | Thu, 22 Jun 2006 19:01:59 +0000 |
| Subject: | #37883 [Opn->Bgs]: incorrect handling of double quotes in argv parameters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-98678@lists.php.net to get a copy of this message | ||
ID: 37883
Updated by: tony2001@php.net
Reported By: winfried dot pohl at pohl-it dot de
-Status: Open
+Status: Bogus
Bug Type: CGI related
Operating System: Windows 2000/2003
PHP Version: 5CVS-2006-06-22 (snap)
New Comment:
Not PHP problem.
Please report it to Microsoft.
Previous Comments:
------------------------------------------------------------------------
[2006-06-22 11:00:01] winfried dot pohl at pohl-it dot de
Description:
------------
php incorrectly handles doubled doublequotes in commandline parameters
which are either ignored or result in messed up argv-array
Reproduce code:
---------------
## test.php
<?
print_r($argv);
?>
## commandline 1
php test.php """param1_1""param1_2" "param2"
"param3"
## commandline 2
php test.php """param1_1""param1_2" "param2" ""
Expected result:
----------------
Array (
[0] => test.php
[1] => "param1_1"param1_2
[2] => param2
[3] => param3
)
Array (
[0] => test.php
[1] => "param1_1"param1_2
[2] => param2
[3] =>
)
Actual result:
--------------
Array (
[0] => test.php
[1] => "param1_1param1_2 param2 param3
)
Array (
[0] => test.php
[1] => "param1_1param1_2 param2 "
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37883&edit=1