XDebug’s settings reminded me - no output to the browser if sending headers
May 20th, 2008 by Aaron
So, I admit it - I’ve become lazy. Well, in all fairness, the programmer before me at “the triangle” was also lazy. And after messing with XDebug and setting output_buffering to off and implicit flush to on… I was reminded of our laziness.
Because of these changes, some of the spaces that we had in our code are now sending output directly to the browser (even though we have an output handler…). For example, this is bad code:
1 2 3 4 5 | /** and some more fun here**/ ?> <?php /** start second block of code **/ |
I know it is bad - you know it is bad… *sigh*. But because of this, I’m not able to use Xdebug’s debugging feature on my ‘triangle’ code. I’d have to put through a project to REMOVE SPACES. Hah.
Tags: PHP
This entry was posted on Tuesday, May 20th, 2008 at 9:04 am and is filed under PHP. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.














