svn: /php/phpruntests/trunk/src/testcase/sections/ rtExecutableSection.php
| From: | Zoe Slattery | Date: | Wed, 05 Aug 2009 21:04:55 +0000 |
| Subject: | svn: /php/phpruntests/trunk/src/testcase/sections/ rtExecutableSection.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60032@lists.php.net to get a copy of this message | ||
zoe Wed, 05 Aug 2009 21:04:55 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=286854
Log:
fixing phar/tests/005.phpt on windows
Changed paths:
U php/phpruntests/trunk/src/testcase/sections/rtExecutableSection.php
Modified: php/phpruntests/trunk/src/testcase/sections/rtExecutableSection.php
===================================================================
--- php/phpruntests/trunk/src/testcase/sections/rtExecutableSection.php 2009-08-05 20:30:21 UTC (rev
286853)
+++ php/phpruntests/trunk/src/testcase/sections/rtExecutableSection.php 2009-08-05 21:04:55 UTC (rev
286854)
@@ -25,8 +25,9 @@
protected function writeExecutableFile()
{
- // @todo I think \n could be replaced with PHP_EOL here - need to check on Windows.
- $contentsAsString = implode("\n", $this->sectionContents) . PHP_EOL;
+ // Don't even think anout replacing the \n with PHP_EOL
+ // It causes stuff (ext/phar/tests/005.phpt) on windows.
+ $contentsAsString = implode("\n", $this->sectionContents) . "\n";
file_put_contents($this->fileName, (binary) $contentsAsString);
}