Doc #79954 [NEW]: ob_start manual: callback prototype differs between translations

From: Date: Tue, 11 Aug 2020 12:50:44 +0000
Subject: Doc #79954 [NEW]: ob_start manual: callback prototype differs between translations
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17759@lists.php.net to get a copy of this message
From:             geompse at gmail dot com
Operating system: 
PHP version:      Irrelevant
Package:          *Languages/Translation
Bug Type:         Documentation Problem
Bug description:ob_start manual: callback prototype differs between translations

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 bug report at https://bugs.php.net/bug.php?id=79954&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=79954&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=79954&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=79954&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=79954&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=79954&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=79954&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=79954&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=79954&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=79954&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=79954&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79954&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=79954&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=79954&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=79954&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=79954&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=79954&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=79954&r=mysqlcfg


Thread (3 messages)

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