symfony/symfony-standard — pull request #649 by mathiasverraes (2014-04-18 18:56:57+00:00)
Title: Default all requests to HTTP 500.

When php exits after a fatal error, the output is sent to the browser as a HTTP 200. That is of course problematic with ajax, as the client has no idea the response has failed.

With this patch, all responses are 500 by default. Subsequent code is responsible for overriding the status code with the desired valued. That should not be a problem, as all requests in Symfony are handled by controllers that return Response objects.

Unit testing this seems pointless. I did try it on our code base for a day or two, and couldn't find any problems, so I think this is a non-breaking change.