Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68878 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28774 invoked from network); 3 Sep 2013 00:22:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2013 00:22:01 -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.212.45 cause and error) X-PHP-List-Original-Sender: rasmus@mindplay.dk X-Host-Fingerprint: 209.85.212.45 mail-vb0-f45.google.com Received: from [209.85.212.45] ([209.85.212.45:46243] helo=mail-vb0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/E2-29856-8AB25225 for ; Mon, 02 Sep 2013 20:22:01 -0400 Received: by mail-vb0-f45.google.com with SMTP id e15so3331784vbg.4 for ; Mon, 02 Sep 2013 17:21:57 -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=CU/BGh6IZSspH7ts5gaWPjTuVeao1Bs0XU711ipLNyI=; b=HAktnTfz9a/k9kJllb0cWFhISRaRjnTU4qzLJokAsXT5uccmUFmYonGDuXiXdJoaYu JGgnTSSgn5p+sVONmKdVxmArL8mpDNDLPD65xlgCRMUd7FPskaweAkprh+whhKg8JtUG BBLzd0h/de1nrPX98UklHpYHshmZh55aVPX5dStHlAM7uodCWcpLoc8467le7LNF0DBP NcVLB11zupBVSq79c6DRdhhJiZZ7CZwXr8DefFLoP5E/juxXwLpkPQsldTliljT5Db6v uKbtHa8+RVakL/HF1+2W6Wsucw9hN8c/CD5tdK8OK1YThktTjKu0Msu/hC8abPeCqXXX vDAQ== X-Gm-Message-State: ALoCoQkz/nNqhzUXwQU8EADh8Wt7XXzvzb1Zj9dg/vhpz68WNlx/eUZ6Md6DfBosOnHA3STtjxhL MIME-Version: 1.0 X-Received: by 10.52.165.45 with SMTP id yv13mr20928292vdb.1.1378167717832; Mon, 02 Sep 2013 17:21:57 -0700 (PDT) Received: by 10.58.45.198 with HTTP; Mon, 2 Sep 2013 17:21:57 -0700 (PDT) In-Reply-To: <5224F352.30408@sugarcrm.com> References: <52244384.7030407@sugarcrm.com> <5224F352.30408@sugarcrm.com> Date: Mon, 2 Sep 2013 20:21:57 -0400 Message-ID: To: Stas Malyshev Cc: Matthew Leverton , PHP internals Content-Type: multipart/alternative; boundary=001a11c2080243417304e56fadaa Subject: Re: [PHP-DEV] Re: crc32() and ip2long() return values From: rasmus@mindplay.dk (Rasmus Schultz) --001a11c2080243417304e56fadaa Content-Type: text/plain; charset=ISO-8859-1 if I wanted strings or something else, that would be simple enough - sprintf() will do the job. in my case, I needed a scalar value that I can actually persist to the database. On Mon, Sep 2, 2013 at 4:21 PM, Stas Malyshev wrote: > Hi! > > > 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. > > Why 32-bit signed values and not something else - like binhex or some > other form? What these values are to be used for? > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > On Mon, Sep 2, 2013 at 4:21 PM, Stas Malyshev wrote: > Hi! > > > 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. > > Why 32-bit signed values and not something else - like binhex or some > other form? What these values are to be used for? > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > --001a11c2080243417304e56fadaa--