cvs: phpdoc /en/reference/array/functions usort.xml

From: Date: Mon, 17 Jun 2002 12:36:08 +0000
Subject: cvs: phpdoc /en/reference/array/functions usort.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969346525@lists.php.net to get a copy of this message
hholzgra Mon Jun 17 08:36:08 2002 EDT Modified files: /phpdoc/en/reference/array/functions usort.xml Log: behaviour change ducumented more clearly (see bug #14591) Index: phpdoc/en/reference/array/functions/usort.xml diff -u phpdoc/en/reference/array/functions/usort.xml:1.4 phpdoc/en/reference/array/functions/usort.xml:1.5 --- phpdoc/en/reference/array/functions/usort.xml:1.4 Sun May 12 04:19:28 2002 +++ phpdoc/en/reference/array/functions/usort.xml Mon Jun 17 08:36:08 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.usort"> <refnamediv> @@ -25,8 +25,15 @@ The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the - second. If two members compare as equal, their order in the - sorted array is undefined. + second. + <note> + <para> + If two members compare as equal, their order in the sorted array is undefined. + Up to PHP 4.0.6 the user defined functions would keep the original order for + thoes elements, but with the new sort algorithm intruduced with 4.1.0 this + is no longer the case as there is no solution to do so in an efficient way. + </para> + </note> </para> <para> <example>

« previous php.doc (#969346525) next »