Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68854 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80551 invoked from network); 2 Sep 2013 16:35:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2013 16:35:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@mindplay.dk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@mindplay.dk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mindplay.dk from 209.85.128.170 cause and error) X-PHP-List-Original-Sender: rasmus@mindplay.dk X-Host-Fingerprint: 209.85.128.170 mail-ve0-f170.google.com Received: from [209.85.128.170] ([209.85.128.170:62718] helo=mail-ve0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/C9-29856-D6EB4225 for ; Mon, 02 Sep 2013 12:35:57 -0400 Received: by mail-ve0-f170.google.com with SMTP id 15so3379435vea.29 for ; Mon, 02 Sep 2013 09:35:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=KWEwP5F4WoNy7NUEmXiazoFE4lUGB9cdw3bJaWPU3GA=; b=C6sUf4f0Bjy3SNRlTNoLWgSTQx/TrIGM8y0XzAFTn8MVLhNVei5MAx6uxNwDCuMpQk 3OOOWse/e2aJ509aLSAJTc0o6ym8bHMXXnWZrpxKfedHMMBYXMLozh2J3XTi28yPkSHs eeJoft6AgRv0Dcl4u3yAZ+9tSU0n9t8s3PNgkS0iyNBrzSrx0wrS5tnKpYBcZLq9PQCe /vadBiUeLwzRllsyxe9JJjUB06AQkIDFujgd0vn21Z54kQlDivoYW6JoucaRmATTLCUe 9Q19BoDR9cbk0zW75tITdFusxahLBEN8j2LX4/UEJVHfCtTvstsBkDPKuH+jRWCahLsq hDqg== X-Gm-Message-State: ALoCoQkctbcVTDzh+ony3LuynK6KpO4qZKSQcN/NmMqQdZVtlbTed8kclyiv/PNu5CeSUP9gjcjK MIME-Version: 1.0 X-Received: by 10.52.173.165 with SMTP id bl5mr6487354vdc.18.1378139754395; Mon, 02 Sep 2013 09:35:54 -0700 (PDT) Received: by 10.58.45.198 with HTTP; Mon, 2 Sep 2013 09:35:54 -0700 (PDT) In-Reply-To: <52244384.7030407@sugarcrm.com> References: <52244384.7030407@sugarcrm.com> Date: Mon, 2 Sep 2013 12:35:54 -0400 Message-ID: To: Stas Malyshev Cc: Matthew Leverton , PHP internals Content-Type: multipart/alternative; boundary=bcaec51b9cfd83122b04e5692a08 Subject: Re: [PHP-DEV] Re: crc32() and ip2long() return values From: rasmus@mindplay.dk (Rasmus Schultz) --bcaec51b9cfd83122b04e5692a08 Content-Type: text/plain; charset=ISO-8859-1 No, just this thread of e-mails. What I'm suggesting is simply a set of alternative functions to ip2long() and crc32() that return consistent values on all platforms, e.g. 32-bit signed integer values - a couple of new functions and a couple of quick updates to the documentation explaining why you might want to use them, that's all. On Mon, Sep 2, 2013 at 3:51 AM, Stas Malyshev wrote: > Hi! > > > Yes, all of these problems can be solved - I am well aware of that. I am > > also painfully aware of how much time it can take to solve them reliably. > > > > I just would like to see a solution rather than a bunch of work-arounds - > > not for my own sake, my problem is solved, but for the sake of every poor > > fool who's going to fall into these traps. > > Sorry if I missed it in the thread - so what is your proposal? Is there > a patch/RFC/something else for it? > > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > --bcaec51b9cfd83122b04e5692a08--