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:
2014-05-21 19:32:50 +00:00
parent 45d9d0cb78
commit 45077d166c

View File

@@ -195,7 +195,8 @@ class cli
die ("Not enough parameters provided to method\n");
if (in_array ("-", $argv))
{
$key = reset (array_keys ($argv, "-"));
$tab = array_keys ($argv, "-");
$key = reset ($tab);
$argv[$key] = file_get_contents ("php://stdin");
}