Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70931 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55507 invoked from network); 30 Dec 2013 21:31:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Dec 2013 21:31:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.107 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.107 smtp107.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.107] ([108.166.43.107:52328] helo=smtp107.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/24-33070-E16E1C25 for ; Mon, 30 Dec 2013 16:31:12 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp6.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 429ED9864D; Mon, 30 Dec 2013 16:31:08 -0500 (EST) X-Virus-Scanned: OK Received: by smtp6.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id BB66F9864E; Mon, 30 Dec 2013 16:31:07 -0500 (EST) Message-ID: <52C1E61B.8050404@sugarcrm.com> Date: Mon, 30 Dec 2013 13:31:07 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Yasuo Ohgaki CC: Nikita Popov , "internals@lists.php.net" References: <52C1DB86.1030909@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] GMP object and is_scalar() From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > Since this (GMP numbers work like normal numbers) is new feature, we > may choose better option. I think you're taking it way too far. GMP numbers may support some functions that scalars support, but that does not mean every function - especially functions with are *specifically designed* to distinguish scalars from objects - would do the same thing for them as for scalars. If you're interested in their "numeric" properties - i.e. adding them, multiplying them, etc. - fine, they work that way. But if you "pop the hood" and look inside - no, they should not be scalars inside, because they are not. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227