|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-02-14 16:36 UTC] cmb@php.net
-Status: Open
+Status: Verified
-Package: *Compression related
+Package: Output Control
[2018-02-14 16:36 UTC] cmb@php.net
[2021-03-16 12:30 UTC] cmb@php.net
-Status: Verified
+Status: Duplicate
-Assigned To:
+Assigned To: cmb
[2021-03-16 12:30 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
Description: ------------ HTTP spec describes Accept-Encoding as a list with "quality values", i.e. it can be something like: Accept-Encoding: gzip;q=1.0, deflate;q=0.7 There is a special case when q equals zero which means the client does NOT accept that particular value Because the ob_gzhandler() is implemented with a strstr(Z_STRVAL_P(enc), "gzip"), the check fails to exclude "gzip;q=0" Test script: --------------- <?php ob_start("ob_gzhandler"); echo "Hello";