- Fixed bug #24977 (Revert mysql_select_db optimization). (Ilia)
- Fixed bug #24909 (Bad random numbers with ZTS builds on Solaris). (Ilia)
- Fixed bug #24951 (ob_flush() needlessly destroys output handler). (Ilia)
+- Fixed bug #24897 (inconsistent behavior of shuffle() & array_multisort()).
+ (Ilia, Jani)
- Fixed bug #24792 (--enable-zend-multibyte causes random segfaults with ZTS).
(fujimoto)
- Fixed bug #24142 (workaround for a gcc bug affecting round()). (Marcus, Ilia)
n_elems = zend_hash_num_elements(Z_ARRVAL_P(array));
- if (n_elems <= 1) {
+ if (n_elems < 1) {
return;
}
/* If all arrays are empty or have only one entry,
we don't need to do anything. */
- if (array_size <= 1) {
+ if (array_size < 1) {
for (k = 0; k < MULTISORT_LAST; k++)
efree(ARRAYG(multisort_flags)[k]);
efree(arrays);