Re: #19259 [Csd->Ctl]: sort-functions don't work
| From: | Michael Mauch | Date: | Sat, 16 Nov 2002 15:29:01 +0000 |
| Subject: | Re: #19259 [Csd->Ctl]: sort-functions don't work | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91136@lists.php.net to get a copy of this message | ||
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.
Regards...
Michael