~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/standard/tests/array/bug24897.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
Bug #24897 (inconsistent behaviour or shuffle() & array_multisort())
 
3
--FILE--
 
4
<?php
 
5
$a = array(1 => 2);
 
6
shuffle($a);
 
7
var_dump($a);
 
8
 
 
9
$a = array(1 => 2);
 
10
array_multisort($a);
 
11
var_dump($a);
 
12
?>
 
13
--EXPECT--
 
14
array(1) {
 
15
  [0]=>
 
16
  int(2)
 
17
}
 
18
array(1) {
 
19
  [0]=>
 
20
  int(2)
 
21
}