Re: Re: crc32() and ip2long() return values

From: Date: Tue, 03 Sep 2013 00:21:57 +0000
Subject: Re: Re: crc32() and ip2long() return values
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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 <[email protected]>
 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 <[email protected]>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
>


Thread (14 messages)

« previous php.internals (#68878) next »