|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75256 Default value & proposed values for flag parameter don't match type declaration
Submitted: 2017-09-25 21:02 UTC Modified: 2017-09-25 23:07 UTC
From: hw at hollo dot me Assigned: cmb (profile)
Status: Duplicate Package: Documentation problem
PHP Version: 7.1.9 OS: Ubuntu 16.04. LTS
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: hw at hollo dot me
New email:
PHP Version: OS:


 [2017-09-25 21:02 UTC] hw at hollo dot me
From manual page:

The parameter type declaration of $flag is integer, but its default value is described as TRUE. Additionally the proposed values for $flag are TRUE and FALSE in the documentation.

According to the source the parameter is defined as an integer.

When using strict_type mode and passing TRUE or FALSE a TypeError is thrown:

PHP Fatal error:  Uncaught TypeError: ob_implicit_flush() expects parameter 1 to be integer, boolean given

Tested on current PHP 7.0.23 and PHP 7.1.9 in CLI and FPM mode.

Test script:
<?php declare(strict_types=1);



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-09-25 21:13 UTC]
This seems to be more than just a documentation issue and looks almost like a duplicate to
 [2017-09-25 23:07 UTC]
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2017-09-25 23:07 UTC]
Indeed a duplicate of bug #74889.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Sep 18 03:03:36 2021 UTC