]> granicus.if.org Git - php/commitdiff
\s cannot be used with ereg()
authorMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 21 Oct 2002 10:22:41 +0000 (10:22 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 21 Oct 2002 10:22:41 +0000 (10:22 +0000)
run-tests.php

index 9e8d9384a0128b35dbb2d61b0c8f7a42339f8091..21854801260dee22e31eff5bd5b714c14f0e67d3 100755 (executable)
@@ -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 {