]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Sat, 9 Aug 2003 20:49:01 +0000 (20:49 +0000)
committerSVN Migration <svn@php.net>
Sat, 9 Aug 2003 20:49:01 +0000 (20:49 +0000)
ext/standard/tests/array/bug24897.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/array/bug24897.phpt b/ext/standard/tests/array/bug24897.phpt
new file mode 100644 (file)
index 0000000..45bcde3
--- /dev/null
@@ -0,0 +1,21 @@
+--TEST--
+Bug #24897 (inconsistent behaviour or shuffle() & array_multisort())
+--FILE--
+<?php
+$a = array(1 => 2);
+shuffle($a);
+var_dump($a);
+
+$a = array(1 => 2);
+array_multisort($a);
+var_dump($a);
+?>
+--EXPECT--
+array(1) {
+  [0]=>
+  int(2)
+}
+array(1) {
+  [0]=>
+  int(2)
+}