Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67598 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82883 invoked from network); 31 May 2013 20:03:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2013 20:03:37 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.45 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.212.45 mail-vb0-f45.google.com Received: from [209.85.212.45] ([209.85.212.45:47945] helo=mail-vb0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/9F-02347-91209A15 for ; Fri, 31 May 2013 16:03:37 -0400 Received: by mail-vb0-f45.google.com with SMTP id 12so1362533vbf.32 for ; Fri, 31 May 2013 13:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+N4BZqRYJp8ASV55PLDQUelSwYWu/S5REUOIq7Xatd0=; b=Ojx+5Ox1KhlXNBJ0xBOBb01QL9wCk+O7HxEVZvkPHaGGcX1/fphFKEKY4dcnf9xhpF wb394eWm4f4m8QayW4h01SE1cCWoY7j/oE2+JD98lEDtzNKFKifZKXaKLyzfimYHQHVz bmqQNwrm6QPHtDtVEm0tsIIlDnWRgqrfz7aYTNNnMbBgw9n8JLjNsDkxatySeCIbFShN D0dQPoKM5h/GfFwrSpOAWvFRoK6jHRxoVAklRdgovscqJyec0TDYpI9x/dURDh8+I3+d CUmyqO3rKQpnNSr+rU1y39CDhPfYhsE7J0K0Q5Os/W/r5JTAJQHUY0NNUxm63Gag2EQy Qc9g== MIME-Version: 1.0 X-Received: by 10.220.48.73 with SMTP id q9mr11780681vcf.36.1370030614465; Fri, 31 May 2013 13:03:34 -0700 (PDT) Received: by 10.58.217.197 with HTTP; Fri, 31 May 2013 13:03:34 -0700 (PDT) In-Reply-To: <6dae6c81-3e50-42f3-9a7e-87eedf8861d4@email.android.com> References: <6dae6c81-3e50-42f3-9a7e-87eedf8861d4@email.android.com> Date: Fri, 31 May 2013 16:03:34 -0400 Message-ID: To: Derick Rethans Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c2e2581b573e04de091ca6 Subject: Re: [PHP-DEV] 5.NEXT Integer and String type modifications From: ircmaxell@gmail.com (Anthony Ferrara) --001a11c2e2581b573e04de091ca6 Content-Type: text/plain; charset=ISO-8859-1 Derick, In principle I think this is great thing to do. Not having a 64 bit type is > annoying. I'm a bit curious on how this is going to work with all sorts of > object wrappers that are now in place as workaround. And casting int64 to > int32 needs to very well looked at as well. > > As far as the casting, my first reaction would be to raise an E_ENGINE_NOTICE on data loss (casting from int64 to int32 with ints > 32 bit) and then adjusting the value to the nearest representable value (LONG_MAX or LONG_MIN). In other words, it may need to be more than a simple cast (an inline function perhaps)... As far as object wrappers, any particular examples that you're thinking of? Thanks for the thoughts Anthony --001a11c2e2581b573e04de091ca6--