com phpruntests: Fixed parser to allow ===done=== at start of line only. Because people have used echo "===done===" which is of course not the
same.: src/testcase/rtPhpTest.p hp

From: Date: Wed, 15 Jul 2009 17:04:11 +0000
Subject: com phpruntests: Fixed parser to allow ===done=== at start of line only. Because people have used echo "===done===" which is of course not the
same.: src/testcase/rtPhpTest.p hp
Groups: php.qa 
Request: Send a blank email to php-qa+get-66339@lists.php.net to get a copy of this message
Commit: a5b059009ddea6b1989f1371cb67495aea233b5e Author: Zoe Slattery <zoe@php.net> Wed, 15 Jul 2009 17:04:11 +0000 Parents: 1026d4d52e8767106c860733b4a010c1d621d981 Branches: master Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=a5b059009ddea6b1989f1371cb67495aea233b5e Log: Fixed parser to allow ===done=== at start of line only. Because people have used echo "===done===" which is of course not the same. Changed paths: M src/testcase/rtPhpTest.php Diff: diff --git a/src/testcase/rtPhpTest.php b/src/testcase/rtPhpTest.php index b573637..ddcf082 100644 --- a/src/testcase/rtPhpTest.php +++ b/src/testcase/rtPhpTest.php @@ -183,7 +183,8 @@ class rtPhpTest $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; } }

« previous php.qa (#66339) next »