Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32840 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3944 invoked by uid 1010); 17 Oct 2007 23:10:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3929 invoked from network); 17 Oct 2007 23:10:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2007 23:10:21 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:45085] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/41-05004-C5696174 for ; Wed, 17 Oct 2007 19:10:21 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 18 Oct 2007 01:10:18 +0200 Received: from [192.168.17.41] ([192.168.17.41]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 17 Oct 2007 16:10:14 -0700 Message-ID: <47169656.9090708@zend.com> Date: Wed, 17 Oct 2007 16:10:14 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Rob Richards CC: internals@lists.php.net References: <470D0DD8.7080100@ctindustries.net> In-Reply-To: <470D0DD8.7080100@ctindustries.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Oct 2007 23:10:14.0355 (UTC) FILETIME=[DFE63A30:01C81112] Subject: Re: [PHP-DEV] Object arithmetic From: stas@zend.com (Stanislav Malyshev) > While looking at bug 42780: http://bugs.php.net/bug.php?id=42780 > The only way not to lose precision is to explicitly cast the object to > float or string, which just doesn't seem right to me. I'm not sure how this can be fixed - there should be some type used and many objects won't provide convertor to float... Anyway, it's probably not the best idea to rely on default conversion in this context - better to specify it. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com