浏览代码

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 年之前
父节点
当前提交
9cd6c06840
共有 1 个文件被更改,包括 1 次插入1 次删除
  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();