|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44533 floatval() issues E_NOTICE "non well formed numeric value"
Submitted: 2008-03-25 18:41 UTC Modified: 2008-03-29 22:02 UTC
From: cschneid at cschneid dot com Assigned:
Status: Closed Package: *Math Functions
PHP Version: 6CVS-2008-03-25 (CVS) OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: cschneid at cschneid dot com
New email:
PHP Version: OS:


 [2008-03-25 18:41 UTC] cschneid at cschneid dot com
floatval("4foo"); issues E_NOTICE "non well formed numeric value"

Reproduce code:
php -d error_reporting=65535 -r 'var_dump(floatval("4foo"));'

Expected result:

Actual result:
Notice: A non well formed numeric value encountered in Command line code on line 1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-29 22:02 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 12 14:01:34 2024 UTC