Doc #69836 [NEW]: is_numeric and binary number

From: Date: Mon, 15 Jun 2015 12:37:26 +0000
Subject: Doc #69836 [NEW]: is_numeric and binary number
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12431@lists.php.net to get a copy of this message
From: david at grudl dot com Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:is_numeric and binary number Description: ------------ Documentation states that (http://php.net/manual/en/function.is-numeric.php) > Hexadecimal (e.g. 0xf4c3b00c), Binary (e.g. 0b10100111001), Octal (e.g. 0777) notation is allowed too but only without sign, decimal and exponential part. But it is not true for binary and octal numbers, is_numeric('0b10100111001') returns FALSE. -- Edit bug report at https://bugs.php.net/bug.php?id=69836&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69836&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69836&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69836&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69836&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69836&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69836&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69836&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69836&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69836&r=support Expected behavior: https://bugs.php.net/fix.php?id=69836&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69836&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69836&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69836&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69836&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69836&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69836&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69836&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69836&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69836&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69836&r=mysqlcfg

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