Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32853 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99219 invoked by uid 1010); 18 Oct 2007 16:08:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99204 invoked from network); 18 Oct 2007 16:08:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2007 16:08:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; 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:36932] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/86-61918-AF487174 for ; Thu, 18 Oct 2007 12:08:27 -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 18:08:24 +0200 Received: from [192.168.16.91] ([192.168.16.91]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 18 Oct 2007 09:08:20 -0700 Message-ID: <471784F5.6080806@zend.com> Date: Thu, 18 Oct 2007 09:08:21 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Alexey Zakhlestin CC: Rob Richards , internals@lists.php.net References: <470D0DD8.7080100@ctindustries.net> <47169656.9090708@zend.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Oct 2007 16:08:20.0478 (UTC) FILETIME=[1A10E1E0:01C811A1] Subject: Re: [PHP-DEV] Object arithmetic From: stas@zend.com (Stanislav Malyshev) > In this case, the proper solution is to force SimpleXML to cast values > to strings, because, after all, XML has nothing but strings. Then + operator requires numeric values. SimpleXML can't return string when asked for numeric value. The problem is while + can accept both int and float, it can't ask for both. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com