[php-src] Issue #8210: ob_start('ob_gzhandler') in 8.1.4 fails
| From: | jochensengier | Date: | Thu, 17 Mar 2022 13:50:40 +0000 |
| Subject: | [php-src] Issue #8210: ob_start('ob_gzhandler') in 8.1.4 fails | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240393@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8210
Comment Author: jochensengier
This is a website running Laravel v9.5.1 on PHP 8.1.4
https://www.vandelanotte.be/en
If you navigate to: https://www.vandelanotte.be/en?debug=1
It will execute
ob_start('ob_gzhandler'); at the top of the page/script and
you'll see a content encoding error in every browser. The ob_start function is
something I've been using for over a decade on various Laravel and PHP versions.
GET /en HTTP/1.1
Host: www.vandelanotte.be
Returns headers, response, ...
GET /en?debug=1 HTTP/1.1
Host: www.vandelanotte.be
Returns nothing, except an error.
After some debugging, I found in one of the server logs that there's a deprecation
error/warning, perhaps that is causing the issue? I noticed some PRs in this new version regarding
ob_clean, maybe it's worth checking those out?
[Thu Mar 17 14:37:35.363334 2022] [error] [pid 3226378] mod_proxy_fcgi.c(887): [client :0]
AH01071: Got error 'PHP message: PHP Deprecated: Return type of ....'
I know it's difficult to debug these kind of issues, so I really appreciate the effort and time
you're putting into this.