Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67600 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87402 invoked from network); 31 May 2013 20:48:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2013 20:48:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.174 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 74.125.82.174 mail-we0-f174.google.com Received: from [74.125.82.174] ([74.125.82.174:59496] helo=mail-we0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/70-02347-59C09A15 for ; Fri, 31 May 2013 16:48:22 -0400 Received: by mail-we0-f174.google.com with SMTP id q58so106399wes.19 for ; Fri, 31 May 2013 13:48:19 -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=W+H3vDzgbuGIPjA1b+lTNEAo/bGnx8xddlyKpCFwcgY=; b=Tk7w1hZXFmir4A6dKFdpgzLujNNU7M/SglNiUiB8Ei1wtVvKRc5SqP4clvyuGdLuMN kL6v2ZIqLCOMgs4bCIUg7ITl8qAnxbHMw1n/CwqWnA+sG2XfZPaZ8Rv3q69te8jABODX 8BPN+iBmswJ84wf8GFlFPuRJdOziro/KF7tUGU/hEOrLwXJZSyZL07w8wRmjWHVVFdK6 PG218MK3Jfbu4BJeZz1qik8AMECUJI88p+zvrnFoDa+Xq2KQhSDd12vg0sY5jn8ht/qV 28/SydhSw4PeFjS8pT+JKHdRIQM3KnmNvnXTtoF1nh4jOCt/T13yxFSA7Ubbu410rKKV FDog== MIME-Version: 1.0 X-Received: by 10.180.74.81 with SMTP id r17mr4847847wiv.49.1370033299153; Fri, 31 May 2013 13:48:19 -0700 (PDT) Received: by 10.227.156.201 with HTTP; Fri, 31 May 2013 13:48:19 -0700 (PDT) In-Reply-To: References: <6dae6c81-3e50-42f3-9a7e-87eedf8861d4@email.android.com> Date: Fri, 31 May 2013 16:48:19 -0400 Message-ID: To: Derick Rethans Cc: Anthony Ferrara , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f46d043d65d320698d04de09bc7f Subject: Re: [PHP-DEV] 5.NEXT Integer and String type modifications From: theanomaly.is@gmail.com (Sherif Ramadan) --f46d043d65d320698d04de09bc7f Content-Type: text/plain; charset=ISO-8859-1 On Fri, May 31, 2013 at 4:21 PM, Derick Rethans wrote: > Anthony Ferrara wrote: > > > 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) > > That can't be handled in applications though ... > > > As far as object wrappers, any particular examples that you're > > thinking of? > > It happens on atleast two extensions that I've written, dbus and mongodb, > so I was thinking there must be a few more. > > PDO does a lot of that in various places. > Cheers, > Derick > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --f46d043d65d320698d04de09bc7f--