{"shas":[["bb5075d8200cdb0a285fb366e58924e787edf231","d4f8dcd89cfe40276c0fbf336903f4a05ab082c9@gmail.com","[HttpFoundation] prevented Response headers to be sent twice\n\nThis change allows for more flexibility if the developer wants to flush\nthe Response content early (the drawback being that Response listeners\nwon't be able to tweak the HTTP headers anymore).\n\nThere is another benefit: avoid the infamous\n\"Fatal error: Exception thrown without a stack frame in Unknown on line 0\".\n\nHere is a small scenario when this can happen (thanks dtee for identifying this issue):\n\n* Call flush() in controller to output html early, then throw exception\n* ExceptionHandler triggers handle() function and return new Response object to output...\n* Because the header is sent (flush() call in Controller), php's E_WARNING error get raised, which gets handled by ErrorHandler->handle() and it throws new ErrorException()\n* PHP fatals to prevent Exception loop: \"Fatal error: Exception thrown without a stack frame in Unknown on line 0\"","Fabien Potencier"]],"ref":"refs/heads/master","size":1,"head":"bb5075d8200cdb0a285fb366e58924e787edf231","push_id":35912532}