#45205 [NEW]: Floating point syntax
| From: | chrisvroberts at gmail dot com | Date: | Sun, 08 Jun 2008 11:20:13 +0000 |
| Subject: | #45205 [NEW]: Floating point syntax | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-871@lists.php.net to get a copy of this message | ||
From: chrisvroberts at gmail dot com
Operating system: n/a
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Floating point syntax
Description:
------------
On "http://www.php.net/manual/en/language.types.float.php",
the defined
syntax for floating point values appears to be incorrect:
LNUM [0-9]+
DNUM ([0-9]*[\.]{LNUM}) | ({LNUM}[\.][0-9]*)
EXPONENT_DNUM (({LNUM} | {DNUM}) [eE][+-]? {LNUM})
This does not allow negative floating point values. Presumably it should
be:
LNUM [0-9]+
DNUM ([0-9]*[\.]{LNUM}) | ({LNUM}[\.][0-9]*)
EXPONENT_DNUM [+-]?(({LNUM} | {DNUM}) [eE][+-]? {LNUM})
--
Edit bug report at http://bugs.php.net/?id=45205&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45205&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45205&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45205&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45205&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45205&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45205&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45205&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45205&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45205&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45205&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45205&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45205&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45205&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45205&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45205&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45205&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45205&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45205&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45205&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45205&r=mysqlcfg