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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sun Dec 22 12:01:30 2024 UTC