b13ed7
From c5f321f171783c1b088490dcaf39b0aad5eb5c13 Mon Sep 17 00:00:00 2001
b13ed7
From: Remi Collet <remi@remirepo.net>
b13ed7
Date: Thu, 12 Oct 2017 09:35:57 +0200
b13ed7
Subject: [PATCH] fix  Warning: count(): Parameter must be an array or an
b13ed7
 object that implements Countable in PEAR/RunTest.php on line 346
b13ed7
b13ed7
---
b13ed7
 PEAR/RunTest.php | 2 +-
b13ed7
 1 file changed, 1 insertion(+), 1 deletion(-)
b13ed7
b13ed7
diff --git a/PEAR/RunTest.php b/PEAR/RunTest.php
b13ed7
index 8eabac3c3..482beccb3 100644
b13ed7
--- a/PEAR/RunTest.php
b13ed7
+++ b/PEAR/RunTest.php
b13ed7
@@ -343,7 +343,7 @@ function run($file, $ini_settings = array(), $test_number = 1)
b13ed7
 
b13ed7
         // Check if test should be skipped.
b13ed7
         $res  = $this->_runSkipIf($section_text, $temp_skipif, $tested, $ini_settings);
b13ed7
-        if (count($res) != 2) {
b13ed7
+        if ($res == 'SKIPPED' || count($res) != 2) {
b13ed7
             return $res;
b13ed7
         }
b13ed7
         $info = $res['info'];