php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch php-trunk-array_multisort-natural-case-old-tests for Arrays related Bug #55158

Patch version 2011-08-04 16:01 UTC

Return to Bug #55158 | Download this patch
Patch Revisions:

Developer: arpad@php.net

Index: ext/standard/tests/array/array_multisort_basic2.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_basic2.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_basic2.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : basic functionality 
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL 
  * Source code: ext/standard/array.c
  * Alias to functions: 
Index: ext/standard/tests/array/array_multisort_variation7.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_variation7.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_variation7.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : usage variation - test sort order of all types
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL 
  * Source code: ext/standard/array.c
  * Alias to functions: 
Index: ext/standard/tests/array/array_multisort_variation10.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_variation10.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_variation10.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : usage variation - testing with anonymous arrary arguments 
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL 
  * Source code: ext/standard/array.c
  * Alias to functions: 
Index: ext/standard/tests/array/array_multisort_variation1.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_variation1.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_variation1.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : usage variation 
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL 
  * Source code: ext/standard/array.c
  * Alias to functions: 
Index: ext/standard/tests/array/array_multisort_variation8.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_variation8.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_variation8.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : usage variation - test sort order of all types
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL 
  * Source code: ext/standard/array.c
  * Alias to functions: 
Index: ext/standard/tests/array/array_multisort_variation11.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_variation11.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_variation11.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : usage variation - testing with empty array
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
  * Source code: ext/standard/array.c
  * Alias to functions:
Index: ext/standard/tests/array/array_multisort_variation2.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_variation2.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_variation2.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : usage variation 
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL 
  * Source code: ext/standard/array.c
  * Alias to functions: 
@@ -101,7 +101,7 @@
       'unset var' => @$unset_var,
 );
 
-// loop through each element of the array for SORT_REGULAR|SORT_NUMERIC|SORT_STRING]]
+// loop through each element of the array for SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]]
 
 foreach($inputs as $key =>$value) {
       echo "\n--$key--\n";
Index: ext/standard/tests/array/array_multisort_variation9.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_variation9.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_variation9.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : usage variation - test sort order of all types
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL 
  * Source code: ext/standard/array.c
  * Alias to functions: 
Index: ext/standard/tests/array/array_multisort_variation3.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_variation3.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_variation3.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : usage variation 
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL 
  * Source code: ext/standard/array.c
  * Alias to functions: 
Index: ext/standard/tests/array/array_multisort_variation4.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_variation4.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_variation4.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : usage variation - testing with multiple array arguments 
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL 
  * Source code: ext/standard/array.c
  * Alias to functions: 
Index: ext/standard/tests/array/array_multisort_variation5.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_variation5.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_variation5.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : usage variation - testing with multiple array arguments 
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL 
  * Source code: ext/standard/array.c
  * Alias to functions: 
Index: ext/standard/tests/array/array_multisort_basic1.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_basic1.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_basic1.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : basic functionality 
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL 
  * Source code: ext/standard/array.c
  * Alias to functions: 
Index: ext/standard/tests/array/array_multisort_variation6.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_variation6.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_variation6.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : usage variation - testing with multiple array arguments 
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL 
  * Source code: ext/standard/array.c
  * Alias to functions: 
Index: ext/standard/tests/array/array_multisort_error.phpt
===================================================================
--- ext/standard/tests/array/array_multisort_error.phpt	(revision 314290)
+++ ext/standard/tests/array/array_multisort_error.phpt	(working copy)
@@ -2,7 +2,7 @@
 Test array_multisort() function : error conditions 
 --FILE--
 <?php
-/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* Prototype  : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_CASE]], ...])
  * Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL 
  * Source code: ext/standard/array.c
  * Alias to functions: 
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 07:02:02 2014 UTC