#50123 [NEW]: Arithmetic operators in french manual
| From: | polettog at gmail dot com | Date: | Mon, 09 Nov 2009 12:20:36 +0000 |
| Subject: | #50123 [NEW]: Arithmetic operators in french manual | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-3079@lists.php.net to get a copy of this message | ||
From: polettog at gmail dot com
Operating system:
PHP version: Irrelevant
PHP Bug Type: Translation problem
Bug description: Arithmetic operators in french manual
Description:
------------
http://www.php.net/manual/en/language.operators.arithmetic.php
http://www.php.net/manual/fr/language.operators.arithmetic.php
English :
"The division operator ("/") returns a float value unless the two operands
are integers (or strings that get converted to integers) and the numbers
are evenly divisible, in which case an integer value will be returned."
French :
"L'opérateur de division ("/") retourne une valeur entière (le résultat
d'une division entière) si les deux opérandes sont entiers (ou bien des
chaînes converties en entier)."
The french version doesn't talk about "evenly divisible numbers", so we
can think that the operator really makes integer divisions
15 (int) / 4 (int) = 3 (int)
which is not the case
15 (int) / 4 (int) = 3.75 (float)
--
Edit bug report at http://bugs.php.net/?id=50123&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50123&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50123&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50123&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50123&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50123&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50123&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50123&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50123&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50123&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50123&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50123&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50123&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50123&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50123&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50123&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50123&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50123&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50123&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50123&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50123&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50123&r=mysqlcfg