colder          Sun May 10 20:13:08 2009 UTC

  Modified files:              
    /php-src/ext/standard/tests/array   bug48224.phpt 
  Log:
  MFB: Add test for #48224
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/bug48224.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/standard/tests/array/bug48224.phpt
diff -u /dev/null php-src/ext/standard/tests/array/bug48224.phpt:1.2
--- /dev/null   Sun May 10 20:13:08 2009
+++ php-src/ext/standard/tests/array/bug48224.phpt      Sun May 10 20:13:08 2009
@@ -0,0 +1,15 @@
+--TEST--
+Bug #48224 (array_rand no longer shuffles)
+--FILE--
+<?php
+$a = range(0, 100);
+$a1 = array_rand($a, count($a));
+$a2 = array_rand($a, count($a));
+$a3 = array_rand($a, count($a));
+$a4 = array_rand($a, count($a));
+
+var_dump($a1 === $a2 && $a1 === $a3 && $a1 === $a4);
+
+?>
+--EXPECT--
+bool(true)



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to