Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36534 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64695 invoked from network); 26 Mar 2008 11:55:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2008 11:55:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.189 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.189 rv-out-0910.google.com Received: from [209.85.198.189] ([209.85.198.189:14273] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/83-47041-4B93AE74 for ; Wed, 26 Mar 2008 06:55:35 -0500 Received: by rv-out-0910.google.com with SMTP id k15so2269474rvb.23 for ; Wed, 26 Mar 2008 04:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+E7BdpMN8rAYA9lRmfXPeJp0W5u4OXtE3Cu5Gz5XP1E=; b=Vsru55ZXPDFiY7wsv0tb2fPlM9tRSizVCgSwALfsmnHfrN0FsF0bRKwN7yRlsVIn/MwuwGjD93VPLRfuDaxonwjb+2AARDbiyauexbKwEXpXiH7gKh84OVpuoWKid45sm8fmqpn9goqIG5KkrkZV+HHqxsnN9qUhRAwPWoWssJE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XwUzjawdhRSqjteRqaw7qpQZJYZYOzcosUJmJE3svzT7zskO3NfhJ1Xk/tYJcf7gfnwHP8OHZnkELbDXpghrYV5ELmct05st+f4poVj5OBMx5qE/rO3aHAX1Cb0OtwwgF3ELpjYfJ4CG3Vtr5rlo1xp82XlOW0DH67cF+NgH3Gk= Received: by 10.141.36.10 with SMTP id o10mr4317535rvj.176.1206532529229; Wed, 26 Mar 2008 04:55:29 -0700 (PDT) Received: by 10.141.123.13 with HTTP; Wed, 26 Mar 2008 04:55:29 -0700 (PDT) Message-ID: Date: Wed, 26 Mar 2008 12:55:29 +0100 To: "Christian Schneider" Cc: "PHP Developers Mailing List" In-Reply-To: <47EA3315.1030708@cschneid.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47CD59DD.8060208@cschneid.com> <47EA3315.1030708@cschneid.com> Subject: Re: [PHP-DEV] PHP6 & floatval() BC issue From: pierre.php@gmail.com ("Pierre Joye") On Wed, Mar 26, 2008 at 12:27 PM, Christian Schneider wrote: > Pierre Joye wrote: > > On Tue, Mar 4, 2008 at 3:17 PM, Christian Schneider > > 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