Doc #79508 [NEW]: minor doc typo error

From: Date: Wed, 22 Apr 2020 18:53:27 +0000
Subject: Doc #79508 [NEW]: minor doc typo error
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17508@lists.php.net to get a copy of this message
From: peshigome at gmail dot com Operating system: Irrelevant PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:minor doc typo error 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 になります。 */ -- Edit bug report at https://bugs.php.net/bug.php?id=79508&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79508&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79508&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79508&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79508&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79508&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79508&r=support Expected behavior: https://bugs.php.net/fix.php?id=79508&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79508&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79508&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79508&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79508&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79508&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79508&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79508&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79508&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79508&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79508&r=mysqlcfg

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