[php-src] Issue #7953: Calling ob_clean() after ob_start('gz_handler') does not set Content-Encoding

From: Date: Thu, 20 Jan 2022 16:49:24 +0000
Subject: [php-src] Issue #7953: Calling ob_clean() after ob_start('gz_handler') does not set Content-Encoding
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239155@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7953
Comment Author: timint

I just want to point out ob_clean() doesn't need to be _right after_. Any use of ob_clean()
long after ob_start('gzhandler') should cause the same problem.

```
<?php

  ob_start('ob_gzhandler');

  ...

  echo 'Say something regretful';
  ob_clean();
  
  echo 'Hello World';
```

Result:

```
 ��� �H���W��/�I�V��J�
```


Thread (1 message)

  • timint
« previous php.bugs (#239155) next »