RE: [PHP-DEV] Re: #19259 [Csd->Ctl]: sort-functions don't work
| From: | Sebastian Nohn | Date: | Sat, 16 Nov 2002 16:44:33 +0000 |
| Subject: | RE: [PHP-DEV] Re: #19259 [Csd->Ctl]: sort-functions don't work | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91139@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Michael Mauch [mailto:michael.mauch@gmx.de]
> Sent: Saturday, November 16, 2002 4:29 PM
> To: php-dev@lists.php.net
> Subject: [PHP-DEV] Re: #19259 [Csd->Ctl]: sort-functions don't work
>
>
> I wrote:
>
> > These test results scared me as well, but it looks like this array
> > test itsself is flawed: it relies on the fact that integers
> > automatically wrap around to negative values at INT_MAX (=2147483647
> > on 32 bit machines).
>
> Attaching a patch for the array test: I changed the array in data.inc
> to have only "normal" values (1000 and -1000) instead of 2147483647 and
> -2147483647, and used the output of the tests on a 32 bit Linux machine
> to be the expected result. With the patch, all three tests PASSed on the
> 64 bit Tru64 machine. So array sorting is fortunately not broken again
> on Tru64.
Great! It would be nice if someone with enough karma apply this patch.
Regards,
Sebastian Nohn
--
sebastian@nohn.net - http://www.nohn.net/
PGP Key Available - Did I help you? Consider a gift:
http://www.amazon.de/exec/obidos/wishlist/3HYH6NR8ZI0WI/