[php-src] Issue #8218: ob_end_clean does not reset Content-Encoding header

From: Date: Tue, 12 Apr 2022 14:44:11 +0000
Subject: [php-src] Issue #8218: ob_end_clean does not reset Content-Encoding header
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240902@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8218 Comment Author: DanielnetoDotCom A > @DanielnetoDotCom Thank you so much; but I have a curiosity, we do not know if this is going to > be solved in future versions; It would be convenient to always clean the header. > > ``` > function _ob_end_clean(){ > ob_end_clean(); > header_remove("Content-Encoding"); > } > ``` I agree also I just changed my code to always clean the header and I could confirm it is working in all php versions I have tested

« previous php.bugs (#240902) next »