Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43171 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82930 invoked from network); 25 Feb 2009 13:40:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Feb 2009 13:40:32 -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; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.180 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.218.180 mail-bw0-f180.google.com Received: from [209.85.218.180] ([209.85.218.180:61758] helo=mail-bw0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/B4-50568-D4A45A94 for ; Wed, 25 Feb 2009 08:40:30 -0500 Received: by bwz28 with SMTP id 28so44759bwz.23 for ; Wed, 25 Feb 2009 05:40:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=15u72QCUHzvP27CcfsKEULhRH7RbXA0glpfhiPvcXwk=; b=O1AuC3/N+N8WGBZCmpks1Kc39w5IJR/7e99PKOgYcUlhi3T3ItL4QLZKnyL0Ixfgx/ Pw9fpfUTk5ilZt/x2COnIinW9vObIJe/wQwp2Y2uKPDvezw+8P9ruPFgcZtxZsN8ODx4 jKupNxS1pdU/rhKqpN/CRFripBwX6n+zZ8kHg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=gCgYS4i4wvWStbuEsgBnuVdht5ywegNnQI+3k4B/L7gWwttK8LgavSFJG5apZCTFVI udUQUZwjDUds2pp/OJXeyZXpoGBLgPFw/p+Lw8OPq4iPUuBfeZSVEtYzZGSNX0yzc0Ef 8bzgnUFf2xXU5zfqD6Uv4kRyzdRbiPEaQGjCc= MIME-Version: 1.0 Received: by 10.86.51.2 with SMTP id y2mr756213fgy.2.1235569226509; Wed, 25 Feb 2009 05:40:26 -0800 (PST) In-Reply-To: References: <6D771262-F1BD-43B7-93FC-BF9D47D15F49@prohost.org> <499BF0CF.3000108@googlemail.com> <00d401c991cc$879c1980$0201a8c0@PC> Date: Wed, 25 Feb 2009 14:40:26 +0100 Message-ID: To: Iain Lewis Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: Bug #46701 From: pierre.php@gmail.com (Pierre Joye) On Wed, Feb 25, 2009 at 2:25 PM, Iain Lewis wrote: > Matt Wilmas wrote: > >> >> (I'm glad this change was reverted for 5.2...) >> >> Anyway, like I said in my "5.3 todos" reply, I'll send a possible >> DVAL_TO_LVAL, etc. solution (consistent/reliable overflow across >> platforms) >> for consideration as soon as I can... =A0There are other inconsistencies= and >> behavior changes with the existing code, and it definitely doesn't behav= e >> in >> a platform-independent way! =A0With the 4 versions of DVAL_...: old, 32 = bit, >> 64 bit, 64 bit Windows (not sure why it's there; its longs are still 32 >> bit?), things I can think of: >> >> - Matt >> > > Longs are still 32bit on 64bit windows, which explains the special case f= or > windows. That's correct. long is always 32bit on windows. See: http://msdn.microsoft.com/en-us/library/s3f49ktz.aspx and http://msdn.microsoft.com/en-us/library/cc953fe1.aspx > I'd be interested to see your possible solution to this. Having consisten= t > behaviour across platorms/32bit/64bit would be great from my p.o.v, as > writing tests for the current behaviour isn't fun at all! Something on our TODO is to use fixed and portable size types like what we can find in stdint. I have put a windows version in win32/php_stdint.h if you are interested. Ideally we should do that for all platforms and make them available for all parts of php (extensions, engine or main). Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org