php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79954 [FR] ob_start manual: callback prototype differs between translations
Submitted: 2020-08-11 12:50 UTC Modified: 2020-09-19 14:47 UTC
From: geompse at gmail dot com Assigned: girgias (profile)
Status: Closed Package: Translation 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: geompse at gmail dot com
New email:
PHP Version: OS:

 

 [2020-08-11 12:50 UTC] geompse at gmail dot com
Description:
------------
---
From manual page: https://php.net/function.ob-start
---

Prototype found under the "output_callback" parameter's description is invalid.
Return type differs.
English version " : string" ; French version " : bool"
" : string" is the correct one, for it is the new value of "string $buffer"

This is a very minor issue but I lost a few minutes so it might help others.

Thank you.

Test script:
---------------
handler ( string $buffer [, int $phase ] ) : string /* English version: https://www.php.net/manual/en/function.ob-start.php */

handler ( string $buffer [, int $phase ] ) : bool /* French version: https://www.php.net/manual/fr/function.ob-start.php */ 

Expected result:
----------------
handler ( string $buffer [, int $phase ] ) : string


Actual result:
--------------
handler ( string $buffer [, int $phase ] ) : bool

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-08-11 13:05 UTC] cmb@php.net
-Summary: ob_start manual: callback prototype differs between translations +Summary: [FR] ob_start manual: callback prototype differs between translations
 [2020-08-11 13:06 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2020-08-28 08:30 UTC] cmb@php.net
-Package: *Languages/Translation +Package: Translation problem
 [2020-09-19 14:47 UTC] girgias@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: girgias
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 07:01:28 2024 UTC