From: cschneid at cschneid dot com
Operating system:
PHP version: 6CVS-2008-03-25 (CVS)
PHP Bug Type: Unknown/Other Function
Bug description: floatval() issues E_NOTICE "non well formed numeric value"
Description:
------------
floatval("4foo"); issues E_NOTICE "non well formed numeric value"
Reproduce code:
---------------
php -d error_reporting=65535 -r 'var_dump(floatval("4foo"));'
Expected result:
----------------
float(4)
Actual result:
--------------
Notice: A non well formed numeric value encountered in Command line code
on line 1
float(4)
--
Edit bug report at http://bugs.php.net/?id=44533&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44533&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44533&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44533&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44533&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44533&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44533&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44533&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44533&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44533&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44533&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44533&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44533&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44533&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44533&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44533&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44533&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44533&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44533&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44533&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44533&r=mysqlcfg