Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83220 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81202 invoked from network); 19 Feb 2015 16:25:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2015 16:25:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.50 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.50 mail-qg0-f50.google.com Received: from [209.85.192.50] ([209.85.192.50:58205] helo=mail-qg0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/82-18870-28E06E45 for ; Thu, 19 Feb 2015 11:25:38 -0500 Received: by mail-qg0-f50.google.com with SMTP id e89so7249731qgf.9 for ; Thu, 19 Feb 2015 08:25:35 -0800 (PST) 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=3WU0PoQdmEyqwKWnfx6b3+PI7RZJ3hBK3R288LA8og8=; b=XmvJYqFrLhAGfWq6NZ5BNfjXQ14zAZxtoDA1TpnjiTK2ngIVMyDD9iqStMkqNZNuPp hgStk1VNzWix+FA4A4LgS7UVFN5TIAvKXWuYRL1HNL9ctLGaYnpEqlbiELoLyQKG4QrI AAerfTkYRp1b1YLieVamTFauZ2bhz10iJNLB0npBivYyrY/cSCCvR5bKqNW1hv256ch2 Nx0xB9RI/Q/+/wvpM8cy8TVjGpU9GD4oqCSpmSakPYdKnD9qi59Cl0SZTA9dDuiAnoSy UB9jz6bTdg/5+xa2b/36kg3s/Lt4912ugxky730prkTi4NyxPGM7XQTxfaCGibwwtc2T iVBA== MIME-Version: 1.0 X-Received: by 10.140.232.84 with SMTP id d81mr13808931qhc.15.1424363135371; Thu, 19 Feb 2015 08:25:35 -0800 (PST) Received: by 10.96.39.195 with HTTP; Thu, 19 Feb 2015 08:25:35 -0800 (PST) In-Reply-To: <54E60D80.8010507@lsces.co.uk> References: <011801d04a07$83ab1c00$8b015400$@php.net> <016f01d04a3a$e9183220$bb489660$@php.net> <022801d04ab1$4a0c47d0$de24d770$@php.net> <1913e09d7f52541901d8574d2080a63f@mail.gmail.com> <7a5d96b34b98ec1f3ee17be7fa6a1e81@mail.gmail.com> <2CBDEB67-3DE3-437D-9AF3-0E6A92027244@zend.com> <4cc0c81c7199a452534bb8edcdb19914@mail.gmail.com> <54E589F6.9030002@garfieldtech.com> <54E5B9DD.6080607@lsces.co.uk> <54E60D80.8010507@lsces.co.uk> Date: Thu, 19 Feb 2015 08:25:35 -0800 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Reviving scalar type hints From: pierre.php@gmail.com (Pierre Joye) On Thu, Feb 19, 2015 at 8:21 AM, Lester Caine wrote: > On 19/02/15 12:52, Zeev Suraski wrote: >>> Now that all made sense! >>> > >>> > My only grey area is 'allowing sensible ones' where the size is an >>> > integral part >>> > of what is 'sensible' ... the one where conventional strict typing uses a >>> > type >>> > of the right size? >> I think the guiding principal for these conversions should be no data loss. >> This may mean we have different limits on different architectures, depending >> on whether they're 32-bit or 64-bit. > > This still leaves the 'black hole' caused by the fact that databases are > actively using 'BIGINT' even on 32 bit platforms. It may be that the > only practical approach is gmp, but using that and writing code that > selects that on a 32bit platform, then switching to clean 64bit maths on > a 64bit platform does not sound like simplifying things? > > As with other debates, some say ignore 32 bit, and others say lets loose > the constraints altogether, but having a fundamental type behave > differently depending on platform is a problem? Lester, You keep coming with this topic in every possible threads. As I understand that DB interactions are some of the primary usages of PHP, this discussion has nothing to do with that. DB drivers will do what they have to do to deal with PHP & DB types, as they always do. It would be very good if you could focus on the actual content of a RFC or discussion instead. -- Pierre @pierrejoye | http://www.libgd.org