PHP :: Bug #76563 :: ob_get_clean does not call the ob_start callback |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76563 ob_get_clean does not call the ob_start callback
Submitted: 2018-07-02 15:14 UTC Modified: -
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: roland at nextendweb dot com Assigned:
Status: Open Package: Output Control
PHP Version: 7.2.7 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-07-02 15:14 UTC] roland at nextendweb dot com
If you use ob_start with callback, the callback does not run, if you use ob_get_clean() on the same output buffer. The callback get skipped, which gives unexpected results. I think it is a bug.

Test script:
Expected output:
Parsed: asd<hr>


#2 ob_get_contents + ob_clean
Parsed: asd<hr>

Expected result:
Parsed: asd<hr>


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sat Aug 18 12:01:26 2018 UTC