Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36532 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58025 invoked from network); 26 Mar 2008 11:27:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2008 11:27:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.141.85.117 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.141.85.117 uf1.search.ch Linux 2.6 Received: from [195.141.85.117] ([195.141.85.117:42939] helo=smtp.rim.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/22-47041-B133AE74 for ; Wed, 26 Mar 2008 06:27:24 -0500 Received: from localhost (localhost [127.0.0.1]) by rolig.search.ch (Postfix) with ESMTP id 0BA613C2663; Wed, 26 Mar 2008 12:27:20 +0100 (CET) Received: from smtp.rim.ch ([127.0.0.1]) by localhost (search.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14514-07; Wed, 26 Mar 2008 12:27:18 +0100 (CET) Received: from [192.168.1.72] (ultrafilter-i [192.168.85.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rolig.search.ch (Postfix) with ESMTP id F307F3C2635; Wed, 26 Mar 2008 12:27:17 +0100 (CET) Message-ID: <47EA3315.1030708@cschneid.com> Date: Wed, 26 Mar 2008 12:27:17 +0100 User-Agent: Thunderbird 1.5.0.12 (X11/20060911) MIME-Version: 1.0 To: Pierre Joye CC: PHP Developers Mailing List References: <47CD59DD.8060208@cschneid.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at search.ch Subject: Re: [PHP-DEV] PHP6 & floatval() BC issue From: cschneid@cschneid.com (Christian Schneider) 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? - Chris