title: What could cause PHPUnit to not print very large error messages?
body: <p>This seems to happen only on my system. Nobody else could reproduce it. If the error's message is too large (about 65k bytes in my case) nothing gets printed on screen. I'm using PHP 7.1.3 on Windows 7, with the default php.ini (memory limit set to 8gb) and the default PHPUnit 6.0.13 configuration. The error does not appear in both prompt and powershell.</p>
  
  <pre><code>&lt;?php
  
  use PHPUnit\Framework\Constraint\Constraint;
  use PHPUnit\Framework\TestCase;
  
  class MyConstraint extends Constraint
  {
      protected $expected;
  
      function __construct($expected){
          parent::__construct();
          $this-&gt;expected = $expected;
      }
  
      protected function matches($actual){
          return false;
      }
  
      function failureDescription($other): string{
          return "desc";
      }
  
      function toString(){
          return "description";
      }
  
      function additionalFailureDescription($other): string{
          return str_repeat("x", 100000);
          // If set to a smaller dump, error will appear
          // some people I asked to try could dump one million
          // bytes without problems, while I can't print more
          // than about 50k
      }
  }
  
  class SomeTest extends TestCase
  {
      function testBigDump(){
          TestCase::assertThat("irrelevant", new MyConstraint("irrelevant"));
      }
  }
  
  ?&gt;
  </code></pre>
  
  <p>And this is what I get on screen:</p>
  
  <blockquote>
    <p>PHPUnit 6.0.13 by Sebastian Bergmann and contributors. </p>
    
    <p>Runtime: PHPDBG 7.1.3  Configuration: .............. </p>
    
    <p>F 1 / 1 (100%) </p>
    
    <p>Time: 361 ms, Memory: 6.00MB </p>
    
    <p>There was 1 failure: </p>
    
    <p>1) SomeTest::testBigDump </p>
  
  <pre><code>                             &lt;------- Notice no error description here
  </code></pre>
    
    <p>FAILURES!  Tests: 1, Assertions: 1, Failures: 1.</p>
  </blockquote>
  
  <p>Do you have any idea what could cause this? Thank you in advance.</p>