No 500 header on notice exception under PHP 5.4
Notice: This thread is very old.
- crempa
- Member | 198
OK problem is more complex, all exceptions throwed in template after something is sent to output are catched by Tracy but response code is not changed.
sample:
<?php
//preseneter
$t = new FileTemplate('template.phtml');
$t->render();
?>
template.phtml:
some output
<?php throw new Exception ?>
another content
code 200 returned under PHP 5.4
- enumag
- Member | 2118
If you enable it to solve this you should keep in mind that it actually slows down your application. With OB enabled PHP has to wait until the whole HTML is generated before sending anything to the browser. With OB disabled (which I think is default) output is sent right away and the browser can begin its processing few miliseconds earlier.