Doc #79954 [Opn->Ver]: [FR] ob_start manual: callback prototype differs between translations

From: Date: Tue, 11 Aug 2020 13:06:08 +0000
Subject: Doc #79954 [Opn->Ver]: [FR] ob_start manual: callback prototype differs between translations
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17761@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79954&edit=1

 ID:                 79954
 Updated by:         cmb@php.net
 Reported by:        geompse at gmail dot com
 Summary:            [FR] ob_start manual: callback prototype differs
                     between translations
-Status:             Open
+Status:             Verified
 Type:               Documentation Problem
 Package:            *Languages/Translation
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2020-08-11 12:50:44] 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


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



--
Edit this bug report at https://bugs.php.net/bug.php?id=79954&edit=1


Thread (3 messages)

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