cvs: phpruntests /src/testcase/sections rtExecutableSection.php
| From: | Zoe Slattery | Date: | Sun, 17 May 2009 20:02:46 +0000 |
| Subject: | cvs: phpruntests /src/testcase/sections rtExecutableSection.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-57938@lists.php.net to get a copy of this message | ||
zoe Sun May 17 20:02:46 2009 UTC
Modified files:
/phpruntests/src/testcase/sections rtExecutableSection.php
Log:
using PHP_EOL instead of \n
http://cvs.php.net/viewvc.cgi/phpruntests/src/testcase/sections/rtExecutableSection.php?r1=1.4&r2=1.5&diff_format=u
Index: phpruntests/src/testcase/sections/rtExecutableSection.php
diff -u phpruntests/src/testcase/sections/rtExecutableSection.php:1.4
phpruntests/src/testcase/sections/rtExecutableSection.php:1.5
--- phpruntests/src/testcase/sections/rtExecutableSection.php:1.4 Sun May 17 11:47:11 2009
+++ phpruntests/src/testcase/sections/rtExecutableSection.php Sun May 17 20:02:46 2009
@@ -13,8 +13,9 @@
}
protected function writeExecutableFile()
- {
- $contentsAsString = implode("\n", $this->sectionContents) . "\n";
+ {
+ // @todo I think \n could be replaced with PHP_EOL here - need to check on Windows.s
+ $contentsAsString = implode("\n", $this->sectionContents) . PHP_EOL;
file_put_contents($this->fileName, (binary) $contentsAsString);
}