Date: 06/17/02
- Next message: hholzgra <email protected>: "[PHP-DOC] Bug #14591 Updated: uasort mixes array with equal elements"
- Previous message: hholzgra <email protected>: "[PHP-DOC] Bug #14591 Updated: uasort mixes array with equal elements"
- Next in thread: Derick Rethans: "[PHP-DOC] cvs: phpdoc /en/reference/array/functions usort.xml"
- Maybe reply: Derick Rethans: "[PHP-DOC] cvs: phpdoc /en/reference/array/functions usort.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: hholzgra <email protected>: "[PHP-DOC] Bug #14591 Updated: uasort mixes array with equal elements"
- Previous message: hholzgra <email protected>: "[PHP-DOC] Bug #14591 Updated: uasort mixes array with equal elements"
- Next in thread: Derick Rethans: "[PHP-DOC] cvs: phpdoc /en/reference/array/functions usort.xml"
- Maybe reply: Derick Rethans: "[PHP-DOC] cvs: phpdoc /en/reference/array/functions usort.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

