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

From: Date: Tue, 25 Mar 2008 18:52:44 +0000
Subject: #44533 [Opn->Bgs]: floatval() issues E_NOTICE "non well formed numeric value"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-123621@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: Bogus -Bug Type: Unknown/Other Function +Bug Type: *Math Functions PHP Version: 6CVS-2008-03-25 (CVS) New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php 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 (#123621) next »