ghislainf / zf2-whoops

PHP whoops error on ZF2 framework
https://github.com/filp/whoops
59 stars 10 forks source link

Fix ob_clean() #13

Closed vagnercsouza closed 8 years ago

vagnercsouza commented 8 years ago

Hi!

On my environment, I was having an error caused by the ob_clean(), making it impossible for the actual error to be displayed.

Error: ob_clean(): failed to delete buffer. No buffer to delete

I solved by changing the function from ob_clean to ob_end_clean, and putting an if statement to verify if it's possible to call the ob_end_clean().

I hope it helps. Thanks.

icanhazstring commented 8 years ago

I guess this can be closed then? :)