Re: [PHP4BETA] (Fwd) Re: [PHP4BETA] cvs: /php4 ChangeLog /php4/ext/standard basic_functions.c basic_functions.h

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: [PHP4BETA] (Fwd) Re: [PHP4BETA] cvs: /php4 ChangeLog /php4/ext/standard basic_functions.c basic_functions.h
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-5400@lists.php.net to get a copy of this message
> This happens because Solaris uses proper qsort(), whereas Linux's qsort() is > really a mergesort. > > qsort() expects: > > a cmp b = -(b cmp a) > > That is, deterministically, the result of comparison of b and a has to be > the opposite of a and b. Anything else and qsort() breaks. Ok, but in the end what we have is a qsort() function that works differently on different platforms. What we need is a qsort() function that is a known quantity, so I think it is a good idea to provide our own. -Rasmus

« previous php.version4 (#5400) next »