Doc #64977 [Asn->Opn]: ob_start() fails when passed default parameters
| From: | kalle@php.net | Date: | Tue, 24 Oct 2017 07:18:39 +0000 |
| Subject: | Doc #64977 [Asn->Opn]: ob_start() fails when passed default parameters | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15148@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64977&edit=1
ID: 64977
Updated by: kalle@php.net
Reported by: rewilliams at newtekemail dot com
Summary: ob_start() fails when passed default parameters
-Status: Assigned
+Status: Open
Type: Documentation Problem
Package: Output Control
PHP Version: 5.5.0RC2
-Assigned To: aharvey
+Assigned To:
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2014-11-19 12:14:49] mike@php.net
See also Doc Bug #62019
------------------------------------------------------------------------
[2014-11-19 09:31:48] mike@php.net
PHP_OUTPUT_HANDLER_STARTED just indicates that the handler has been called previously with
PHP_OUTPUT_HANDLER_START set, so it would not get that flag again, unless it has also seen
PHP_OUTPUT_HANDLER_FINAL in the meantime.
So:
handler(PHP_OUTPUT_HANDLER_START) => flags |= STARTED
handler(PHP_OUTPUT_HANDLER_FINAL) => flags ^= STARTED
PHP_OUTPUT_HANDLER_DISABLED:
Internal output handlers can mark them self as disabled with
php_output_handler_hook(PHP_OUTPUT_HANDLER_HOOK_DISABLE), when they f.e. detect an error; see
README.NEW-OUTPUT-API.
Also, when a call to an internal or userland handler fails, or the userland handler returns FALSE.
------------------------------------------------------------------------
[2013-10-01 18:37:07] aharvey@php.net
OK, documentation is done except for the PHP_OUTPUT_BUFFER_STARTED and
PHP_OUTPUT_BUFFER_DISABLED constants, mostly because I can't figure out how
they're useful.
Mike, help please? :)
------------------------------------------------------------------------
[2013-10-01 18:35:20] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=331632
Log: Document the ob_start() changes in PHP 5.4.
Mostly fixes doc bug #64977 (ob_start() fails when passed default parameters).
------------------------------------------------------------------------
[2013-09-27 18:44:22] aharvey@php.net
We probably should have picked that up at the time. Whoops.
OK, I'll assign this to myself and figure out how to document it. Probably won't
be today.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=64977
--
Edit this bug report at https://bugs.php.net/bug.php?id=64977&edit=1