php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79508 minor doc typo error
Submitted: 2020-04-22 18:53 UTC Modified: 2020-04-22 19:43 UTC
From: peshigome at gmail dot com Assigned: mumumu (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2020-04-22 18:53 UTC] peshigome at gmail dot com
Description:
------------
---
From manual page: https://php.net/language.expressions
---
In the japanese version/translation
On the following paragraph, two "*/" are missing :

$f = double($d++);  /* $f には、$d が加算される前の値を2倍した値、
                       つまり 2*6 = 12 が、代入されます。
$g = double(++$e);  /* $g には、$e が加算された後の値を2倍した値、
                        つまり 2*7 = 14 が、代入されます。
$h = $g += 10;      /* まず、$g に 10 が加算され、24 になります。
                       代入値 (24) は、$h に代入されます。
                       そして、$h も同様に 24 になります。 */

Expected result:
----------------
$f = double($d++);  /* $f には、$d が加算される前の値を2倍した値、
                       つまり 2*6 = 12 が、代入されます。 */
$g = double(++$e);  /* $g には、$e が加算された後の値を2倍した値、
                        つまり 2*7 = 14 が、代入されます。 */
$h = $g += 10;      /* まず、$g に 10 が加算され、24 になります。
                       代入値 (24) は、$h に代入されます。
                       そして、$h も同様に 24 になります。 */

Actual result:
--------------
$f = double($d++);  /* $f には、$d が加算される前の値を2倍した値、
                       つまり 2*6 = 12 が、代入されます。
$g = double(++$e);  /* $g には、$e が加算された後の値を2倍した値、
                        つまり 2*7 = 14 が、代入されます。
$h = $g += 10;      /* まず、$g に 10 が加算され、24 になります。
                       代入値 (24) は、$h に代入されます。
                       そして、$h も同様に 24 になります。 */

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-04-22 19:03 UTC] mumumu@php.net
-Status: Open +Status: Verified -Package: Documentation problem +Package: Translation problem -Assigned To: +Assigned To: mumumu
 [2020-04-22 19:05 UTC] mumumu@php.net
-Package: Translation problem +Package: Documentation problem
 [2020-04-22 19:43 UTC] mumumu@php.net
-Status: Verified +Status: Closed -Package: Documentation problem +Package: Translation problem
 [2020-04-22 19:43 UTC] mumumu@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 01:01:28 2024 UTC