Remove "PHP Strict Standards: Only variables should be passed by reference" warning in CLI
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1329 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
3
cli.php
3
cli.php
@@ -195,7 +195,8 @@ class cli
|
|||||||
die ("Not enough parameters provided to method\n");
|
die ("Not enough parameters provided to method\n");
|
||||||
if (in_array ("-", $argv))
|
if (in_array ("-", $argv))
|
||||||
{
|
{
|
||||||
$key = reset (array_keys ($argv, "-"));
|
$tab = array_keys ($argv, "-");
|
||||||
|
$key = reset ($tab);
|
||||||
$argv[$key] = file_get_contents ("php://stdin");
|
$argv[$key] = file_get_contents ("php://stdin");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user