From 45077d166c90ff56009c67ec907bf7f1a7e34719 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 21 May 2014 19:32:50 +0000 Subject: [PATCH] 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 --- cli.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli.php b/cli.php index 47b66fb..9a4056a 100644 --- a/cli.php +++ b/cli.php @@ -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"); }