From 75499a663949fb5ac68d46165598f1c4c8816262 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 10 Jun 2016 08:04:02 +0000 Subject: [PATCH] cli : display the complete string instead of truncate it git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2758 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- cli.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cli.php b/cli.php index 6c87a64..1c0a1c4 100644 --- a/cli.php +++ b/cli.php @@ -362,7 +362,14 @@ class cli $r->auth["email"] = "cli"; $s = call_user_func_array(array($r, $method), $argv); if ($this->QUIET === false || $s !== "" && $s !== array () && $s !== null) - var_dump ($s); + { + if (is_string ($s)) + echo $s; + elseif (is_array ($s)) + print_r ($s); + else + var_dump ($s); + } } catch (Exception $e) {