Bug #64977 [Ana->Asn]: ob_start() fails when passed default parameters

From: Date: Fri, 27 Sep 2013 18:44:22 +0000
Subject: Bug #64977 [Ana->Asn]: ob_start() fails when passed default parameters
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10320@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:         aharvey@php.net
 Reported by:        rewilliams at newtekemail dot com
 Summary:            ob_start() fails when passed default parameters
-Status:             Analyzed
+Status:             Assigned
 Type:               Bug
 Package:            Documentation problem
 PHP Version:        5.5.0RC2
-Assigned To:        
+Assigned To:        aharvey
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2013-09-27 08:05:06] mike@php.net

Duh, unfortunately pretty much the opposite:

bool(true) -> int(1) & ~0xf == 0

The first bits are reserved for the OB handler type (internal/user) and thus ignored, so flags end
up as zero, which in turn means the handler is neither removeable, nor flushable, nor cleanable.

I suspect, I could have done better.

------------------------------------------------------------------------
[2013-09-26 21:23:31] aharvey@php.net

Mike, what happens if you pass true as the "flags" parameter in 5.4+? It looks 
easier to ask you than figure out the code paths, honestly, and we need to cover 
the BC story somehow.

------------------------------------------------------------------------
[2013-09-26 21:21:44] aharvey@php.net

Related To: Bug #62796

------------------------------------------------------------------------
[2013-09-26 14:48:17] mike@php.net

Related To: Bug #62796

------------------------------------------------------------------------
[2013-08-08 06:12:40] masakielastic at gmail dot com

The following page also should be updated.

http://www.php.net/manual/en/outcontrol.constants.php

There is no description for PHP_OUTPUT_HANDLER_CLEANABLE, 
PHP_OUTPUT_HANDLER_DISABLED, PHP_OUTPUT_HANDLER_FLUSHABLE, 
PHP_OUTPUT_HANDLER_REMOVABLE, PHP_OUTPUT_HANDLER_STARTED, 
PHP_OUTPUT_HANDLER_STDFLAGS.

The list of all constants added in PHP 5.4 is found in the following instruction 
page.
http://www.php.net/manual/en/migration54.global-constants.php

------------------------------------------------------------------------


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


Thread (11 messages)

« previous php.doc.bugs (#10320) next »