1--TEST--
2Test natcasesort() function : usage variations - octal values
3--FILE--
4<?php
5/* Prototype  : bool natcasesort(array &$array_arg)
6 * Description: Sort an array using case-insensitive natural sort
7 * Source code: ext/standard/array.c
8 */
9
10/*
11 * Pass an array of octal values to test how natcasesort() re-orders it
12 */
13
14echo "*** Testing natcasesort() : usage variation ***\n";
15
16$unsorted_oct_array = array(01235, 0321, 0345, 066, 0772, 077, -066, -0345, 0);
17
18var_dump( natcasesort($unsorted_oct_array) );
19var_dump($unsorted_oct_array);
20
21echo "Done";
22?>
23--EXPECTF--
24*** Testing natcasesort() : usage variation ***
25bool(true)
26array(9) {
27  [6]=>
28  int(-54)
29  [7]=>
30  int(-229)
31  [8]=>
32  int(0)
33  [3]=>
34  int(54)
35  [5]=>
36  int(63)
37  [1]=>
38  int(209)
39  [2]=>
40  int(229)
41  [4]=>
42  int(506)
43  [0]=>
44  int(669)
45}
46Done
47