Bug inserted in last commit : the dash in parameters is converted in array in place to be read as string
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1366 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
1
cli.php
1
cli.php
@@ -199,7 +199,6 @@ class cli
|
|||||||
$keyStdIn = reset ($tab);
|
$keyStdIn = reset ($tab);
|
||||||
$dataStdIn = file_get_contents ("php://stdin");
|
$dataStdIn = file_get_contents ("php://stdin");
|
||||||
$argv[$keyStdIn] = $dataStdIn;
|
$argv[$keyStdIn] = $dataStdIn;
|
||||||
unset ($keyStdIn);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert "toto=ror&ypyp=oo" arg to array("toto"=>"ror","ypyp"=>"oo")
|
// Convert "toto=ror&ypyp=oo" arg to array("toto"=>"ror","ypyp"=>"oo")
|
||||||
|
|||||||
Reference in New Issue
Block a user