JosephLenton / PHP-Error

Better error reporting for PHP, and prettier too!
1.35k stars 151 forks source link

PHP Error clashes with ob_gzhandler #27

Open Boldewyn opened 12 years ago

Boldewyn commented 12 years ago

I have a PHP file starting with

ob_start('ob_gzhandler');

Placing errors below this line leads to garbage output, i.e., gzipped content without the Content-Encoding header. Throwing an error above works as advertised.

I'm using PHP 5.4.4.

JosephLenton commented 12 years ago

How are you linking in PHP Error? Are you loading it in PHP after the call to ob_start, or are you loading it through php.ini?

Boldewyn commented 12 years ago

I'm loading it via php.ini with

php_error.autorun = On

i.e., beforehand. I'll try loading afterwards, as soon as I get to my dev machine again.