]> granicus.if.org Git - php/commitdiff
MFB: Fix #48224 (Remove incorrect shuffle)
authorEtienne Kneuss <colder@php.net>
Sun, 10 May 2009 16:45:30 +0000 (16:45 +0000)
committerEtienne Kneuss <colder@php.net>
Sun, 10 May 2009 16:45:30 +0000 (16:45 +0000)
ext/standard/array.c

index a06e41a045950027e24e09a17f331fa62425a84a..c14217f611205b1216e67e2a8ac59260b0b8300a 100644 (file)
@@ -4114,10 +4114,6 @@ PHP_FUNCTION(array_rand)
                num_avail--;
                zend_hash_move_forward_ex(Z_ARRVAL_P(input), &pos);
        }
-
-       if (num_req == num_avail) {
-               php_array_data_shuffle(return_value TSRMLS_CC);
-       }
 }
 /* }}} */