zoe Wed, 15 Jul 2009 17:04:11 +0000 URL: http://svn.php.net/viewvc?view=revision&revision=284134
Changed paths: U php/phpruntests/trunk/src/testcase/rtPhpTest.php Log: Fixed parser to allow ===done=== at start of line only. Because people have used echo "===done===" which is of course not the same. Modified: php/phpruntests/trunk/src/testcase/rtPhpTest.php =================================================================== --- php/phpruntests/trunk/src/testcase/rtPhpTest.php 2009-07-15 16:58:10 UTC (rev 284133) +++ php/phpruntests/trunk/src/testcase/rtPhpTest.php 2009-07-15 17:04:11 UTC (rev 284134) @@ -183,7 +183,8 @@ $result = array(); foreach($array as $line) { $result[] = $line; - if(stripos($line, "===done===") !== false) { + // If found at the start of the line, so ' ===done===' won't work. + if(stripos($line, "===done===") === 0) { break; } }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php