Re: PHP6 & floatval() BC issue

From: Date: Wed, 26 Mar 2008 11:55:29 +0000
Subject: Re: PHP6 & floatval() BC issue
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-36534@lists.php.net to get a copy of this message
On Wed, Mar 26, 2008 at 12:27 PM, Christian Schneider <cschneid@cschneid.com> wrote: > 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? I don't see why it has been bogufied. It should be either fixed (as you described) or the documentation has to be updated (move the bug to the doc category). Which # is it? -- Pierre http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#36534) next »