Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35945 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5291 invoked from network); 4 Mar 2008 14:17:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Mar 2008 14:17:14 -0000 Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; 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:43168] helo=smtp.rim.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 64/05-13488-8E95DC74 for ; Tue, 04 Mar 2008 09:17:13 -0500 Received: from localhost (localhost [127.0.0.1]) by rolig.search.ch (Postfix) with ESMTP id 0E74F392979 for ; Tue, 4 Mar 2008 15:17:10 +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 11447-03 for ; Tue, 4 Mar 2008 15:17:08 +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 21DF5392815 for ; Tue, 4 Mar 2008 15:17:06 +0100 (CET) Message-ID: <47CD59DD.8060208@cschneid.com> Date: Tue, 04 Mar 2008 15:17:01 +0100 User-Agent: Thunderbird 1.5.0.12 (X11/20060911) MIME-Version: 1.0 To: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at search.ch Subject: PHP6 & floatval() BC issue From: cschneid@cschneid.com (Christian Schneider) Hi all, 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. The change was introduced with the conversion of floatval() to zend_parse_parameters with revision 1.43 of ext/standard/type.c on 2006/09/24 18:23:47 by pollita (PHP6 Updates). In my opinion floatval() should be restored to the previous behavour because a) the documentation for floatval itself uses a non well formed value in the example and b) to keep it the same as type casting to (float). Or would the proper procedure for me be to open a ticket in the bug tracker? - Chris