Re: ANNOUNCE: DBI 1.57
- From: Tim.Bunce@xxxxxxxxx (Tim Bunce)
- Date: Wed, 20 Jun 2007 09:41:36 +0100
On Wed, Jun 20, 2007 at 06:20:22AM +0000, H.Merijn Brand wrote:
On Tue, 19 Jun 2007 21:11:23 +0100, Tim Bunce <Tim.Bunce@xxxxxxxxx> wrote:
file: $CPAN/authors/id/T/TI/TIMB/DBI-1.57.tar.gz
size: 490304 bytes
md5: fca667f59dff24058a8e0e8f09e2aad9
=head2 Changes in DBI 1.57 (svn rev 9639), 13th June 2007
Note: this release includes a change to the DBI::hash() function which will
now produce different values than before *if* your perl was built with 64-bit
'int' type (i.e. "perl -V:intsize" says intsize='4'). It's relatively rare
Huh?
32bitall:
a5:/u/usr/merijn 101 > perl -V:intsize
intsize='4';
a5:/u/usr/merijn 102 > perl -V:use64bitint
use64bitint='undef';
64bitint:
nb09:/home/merijn 101 > perl -V:intsize
intsize='4';
nb09:/home/merijn 102 > perl -V:use64bitint
use64bitint='define';
64bitall:
x1:/u/usr/merijn 101 > perl -V:intsize
intsize='4';
x1:/u/usr/merijn 102 > perl -V:use64bitall
use64bitall='define';
x1:/u/usr/merijn 103 > perl -V:use64bitint
use64bitint='define';
So, relatively rare sounds very weird to me.
Sorry, I meant "i.e. "perl -V:intsize" says intsize='8'"
which none of those do[1].
I'll update the Changes file. Thanks!
Changed DBI::hash to return 'I32' type instead of 'int' so results are
portable/consistent regardless of size of the int type.
Shouldn't that be IV
No, for the hash function I specifically want 32 bits to ensure the same
value is returned regardless of the size of the int or IV types.
Tim.
[1] http://search.cpan.org/~nwclark/perl-5.8.8/INSTALL#64_bit_support.
.
- References:
- ANNOUNCE: DBI 1.57
- From: Tim Bunce
- Re: ANNOUNCE: DBI 1.57
- From: H.Merijn Brand
- ANNOUNCE: DBI 1.57
- Prev by Date: Re: _install_method with DBI_PUREPERL=2
- Next by Date: perl pad.c Assertion !((sv)->sv_flags & 0x00010000) failed (was: ANNOUNCE: DBI 1.57)
- Previous by thread: Re: ANNOUNCE: DBI 1.57
- Next by thread: Re: ANNOUNCE: DBI 1.57
- Index(es):