zoe             Sat, 18 Jul 2009 15:01:02 +0000

URL: http://svn.php.net/viewvc?view=revision&revision=284324

Changed paths:
        U   php/phpruntests/trunk/QA/compareNewOld.php

Log:
fix regular expression

Modified: php/phpruntests/trunk/QA/compareNewOld.php
===================================================================
--- php/phpruntests/trunk/QA/compareNewOld.php  2009-07-18 13:47:08 UTC (rev 
284323)
+++ php/phpruntests/trunk/QA/compareNewOld.php  2009-07-18 15:01:02 UTC (rev 
284324)
@@ -72,7 +72,7 @@
 function parseOld($output, $searchFor) {
        $result = array();
        foreach($output as $line) {
-               if (preg_match("/$searchFor.*\[(.+\.phpt)\]/", $line, 
$matches)) {
+               if 
(preg_match("/^TEST\s+\d+\/\d+\s+\[(.+\.phpt)\]\s+$searchFor/", $line, 
$matches)) {
                                $result[] = $matches[1];
                }
        }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to