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

From: Date: Wed, 26 Mar 2008 12:00:51 +0000
Subject: #44533 [Bgs->Opn]: floatval() issues E_NOTICE "non well formed numeric value"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-123655@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: Bogus +Status: Open Bug Type: *Math Functions PHP Version: 6CVS-2008-03-25 (CVS) New Comment: Re-opened. Previous Comments: ------------------------------------------------------------------------ [2008-03-25 18:52:43] felipe@php.net 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 ------------------------------------------------------------------------ [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 (#123655) next »