Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70935 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61970 invoked from network); 30 Dec 2013 22:00:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Dec 2013 22:00:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-la0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:37997] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/95-33070-91DE1C25 for ; Mon, 30 Dec 2013 17:00:58 -0500 Received: by mail-la0-f42.google.com with SMTP id ec20so5935886lab.1 for ; Mon, 30 Dec 2013 14:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=D6meCkri6hzS3zT3yS6KDgEOV0yiDv2eJ7gV8G7kVK4=; b=EQsCahsFOzn8ON7wzhnMBNgayke3lXhjT6PBMeWFEKF28TCS8y3PpcslDyLPLqEKkM uD7ldypQtOuEWJZV+Fe3fY494gsed57AvRLUHyuXKjaRHRCzZU60Flda7rMGECZQqzkt 95IthmrzSZFEmyPsFn/B9hGA0t7Mn+g+T1PKM3Wj+5Z7UIEeGWzBF8VeXlyKKVLuxxkA Iur1xq32pdapg9aRahzfFgIchC8FMmAnFI1jh6whSXm1C6eFharqLc1hs4pmrRub1Gxa vhUnLEsSNju1FepCiBVj/eLEE57iNrPZK3tpk6ln7xbZF6eOeUt7adsUhe2ENczuHpuG Hfww== X-Received: by 10.152.140.193 with SMTP id ri1mr28714286lab.18.1388440854664; Mon, 30 Dec 2013 14:00:54 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.6.68 with HTTP; Mon, 30 Dec 2013 14:00:14 -0800 (PST) In-Reply-To: <004501cf05a9$e980fbb0$bc82f310$@tutteli.ch> References: <52C1DB86.1030909@sugarcrm.com> <52C1E61B.8050404@sugarcrm.com> <004501cf05a9$e980fbb0$bc82f310$@tutteli.ch> Date: Tue, 31 Dec 2013 07:00:14 +0900 X-Google-Sender-Auth: 8YNk_BcYifkKEPUkOzmUuB5iWRA Message-ID: To: Robert Stoll Cc: Stas Malyshev , Nikita Popov , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1133b05eef189a04eec79323 Subject: Re: [PHP-DEV] GMP object and is_scalar() From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1133b05eef189a04eec79323 Content-Type: text/plain; charset=UTF-8 Hi Robert, On Tue, Dec 31, 2013 at 6:55 AM, Robert Stoll wrote: > I think __toScalar is way to wage, what will __toScalar() return? a bool, > an int, a float or a string? Not all classes should have __toScalar(). Only classes that should be evaluated as scalar should implement this magic method. Return values are programmer's choice. Whatever scalar values may return. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1133b05eef189a04eec79323--