From cd410cbf9ff64bcad8e8f013a04e383a7c156345 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Mon, 21 Oct 2002 10:22:41 +0000 Subject: [PATCH] \s cannot be used with ereg() --- run-tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index 9e8d9384a0..2185480126 100755 --- a/run-tests.php +++ b/run-tests.php @@ -435,7 +435,7 @@ TEST $file @unlink($tmp_skipif); if (ereg("^skip", trim($output))){ echo "SKIP $tested"; - $reason = (ereg("^skip\s*(.+)$", trim($output))) ? ereg_replace("^skip\s*(.+)$", "\\1", trim($output)) : FALSE; + $reason = (ereg("^skip[[:space:]]*(.+)\$", trim($output))) ? ereg_replace("^^skip[[:space:]]*(.+)\$", "\\1", trim($output)) : FALSE; if ($reason) { echo " (reason: $reason)\n"; } else { -- 2.50.1