php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77635 ob_get_clean() is missing one required flag.
Submitted: 2019-02-18 14:11 UTC Modified: 2019-02-25 11:29 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: atanas dot angelov dot dev at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: atanas dot angelov dot dev at gmail dot com
New email:
PHP Version: OS:

 

 [2019-02-18 14:11 UTC] atanas dot angelov dot dev at gmail dot com
Description:
------------
The docs page for ob_get_clean() (http://php.net/manual/en/function.ob-get-clean.php) does not mention the PHP_OUTPUT_HANDLER_REMOVABLE flag even though it is required since it removes the buffer (ob_end_clean() specifies it correctly).

Test script:
---------------
// Skipping the PHP_OUTPUT_HANDLER_REMOVABLE flag:
ob_start( null, 0, PHP_OUTPUT_HANDLER_CLEANABLE | PHP_OUTPUT_HANDLER_FLUSHABLE );
ob_get_clean();
// Fails with: Notice: ob_get_clean(): failed to discard buffer of default output handler (1)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-02-25 11:29 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=346900
Log: Fix #77635: ob_get_clean() is missing one required flag
 [2019-02-25 11:29 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2019-02-25 11:29 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2019-02-25 11:30 UTC] salathe@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=4f4671e0f6def8a6d1339c760b19f1f69205a257
Log: Fix #77635: ob_get_clean() is missing one required flag
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=71ca0ba6406b65c5023784776661e04207f4b231
Log: Fix #77635: ob_get_clean() is missing one required flag
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 01:01:28 2024 UTC