#44533 [Opn->Csd]: floatval() issues E_NOTICE "non well formed numeric value"

From: Date: Sat, 29 Mar 2008 22:02:32 +0000
Subject: #44533 [Opn->Csd]: floatval() issues E_NOTICE "non well formed numeric value"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-123772@lists.php.net to get a copy of this message
ID: 44533 Updated by: felipe@php.net Reported By: cschneid at cschneid dot com -Status: Open +Status: Closed Bug Type: *Math Functions PHP Version: 6CVS-2008-03-25 (CVS) New Comment: 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 http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-03-25 18:41:12] cschneid at cschneid dot com 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 this bug report at http://bugs.php.net/?id=44533&edit=1

« previous php.bugs (#123772) next »