mirror of
https://github.com/php/php-src.git
synced 2024-12-26 10:19:53 +08:00
MFB: Fix #48224 (Remove incorrect shuffle)
This commit is contained in:
parent
a8209c5157
commit
7c41c86a02
@ -3920,10 +3920,6 @@ PHP_FUNCTION(array_rand)
|
|||||||
num_avail--;
|
num_avail--;
|
||||||
zend_hash_move_forward_ex(Z_ARRVAL_P(input), &pos);
|
zend_hash_move_forward_ex(Z_ARRVAL_P(input), &pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (num_req == num_avail) {
|
|
||||||
php_array_data_shuffle(return_value TSRMLS_CC);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user