|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-06-14 11:19 UTC] mike@php.net
-Status: Open
+Status: Verified
-PHP Version: Irrelevant
+PHP Version: 7.2
[2018-06-14 11:19 UTC] mike@php.net
[2018-06-14 11:26 UTC] spam2 at rhsoft dot net
[2018-07-07 15:51 UTC] wowkise at gmail dot com
[2018-07-07 16:08 UTC] spam2 at rhsoft dot net
[2021-07-20 11:55 UTC] cmb@php.net
-Status: Verified
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2021-07-20 11:55 UTC] cmb@php.net
[2021-08-01 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 07:00:01 2025 UTC |
Description: ------------ if you take a look at the test script, the output_compression shouldn't have been sent, as there is an output before it, however, on Ubuntu 15.10, Using php5-fpm nginx, the headers get sent anyway regardless if there is content before it or not, and that's breaks browsers, and shows errors such as Chrome: This webpage is not available - ERR_CONTENT_DECODING_FAILED Firefox: Content Encoding Error The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. Test script: --------------- <?php $obj = (object) [ 'foo' => 'bar' ]; var_dump( $obj ); if ( !headers_sent() ) { ini_set( 'zlib.output_compression', 1 ); } Expected result: ---------------- the header shouldn't have been sent. Actual result: -------------- the header get sent which garbled the output, which in turn breaks the output_compression, and causes the browsers to show error.