Browse Source

Preventing PHP to segfault on PHP 7

PHP 7 issue #69329 causes the mime_content_type to fail in files smaller than 3 bytes. This change just increase the file on cake to avoid the error. The content of this file is not checked on the tests, just the mime content type.
Juan Basso 11 years ago
parent
commit
9cd6c06840
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/View/Helper/RssHelperTest.php

+ 1 - 1
tests/TestCase/View/Helper/RssHelperTest.php

@@ -598,7 +598,7 @@ class RssHelperTest extends TestCase
         $tmpFile = WWW_ROOT . 'tests/cakephp.file.test.tmp';
         $File = new File($tmpFile, true);
 
-        $this->assertTrue($File->write('123'), 'Could not write to ' . $tmpFile);
+        $this->assertTrue($File->write('1234'), 'Could not write to ' . $tmpFile);
 
         clearstatcache();