Re: PHP6 & floatval() BC issue

From: Date: Wed, 26 Mar 2008 11:27:17 +0000
Subject: Re: PHP6 & floatval() BC issue
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-36532@lists.php.net to get a copy of this message
Pierre Joye wrote: > On Tue, Mar 4, 2008 at 3:17 PM, Christian Schneider > <cschneid@cschneid.com> wrote: >> playing around with PHP 6 I noticed the following BC issue: >> floatval("4.2foo") gives an E_NOTICE "A non well formed numeric value >> encountered". The type casting (float)"4.2foo" still works as before. > >> Or would the proper procedure for me be to open a ticket in the bug tracker? > > It would help to do not forget this problem yes :) I opened a bug report yesterday as you recommended and it was marked bogus. As I never got another answer apart from yours here I wonder if this BC break is thus intentional and what the motivation behind it is. Do we have to change all floatval() to (float) to be safe from suprises from PHP 6? - Chris

« previous php.internals (#36532) next »