Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Error clashes with ob_gzhandler #27

Open
Boldewyn opened this issue Oct 2, 2012 · 2 comments
Open

PHP Error clashes with ob_gzhandler #27

Boldewyn opened this issue Oct 2, 2012 · 2 comments

Comments

@Boldewyn
Copy link

Boldewyn commented Oct 2, 2012

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
Copy link
Owner

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
Copy link
Author

Boldewyn commented Oct 3, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants