diff options
-rw-r--r-- | ext/standard/array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c index 363abfc771..f708957971 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -5753,7 +5753,7 @@ PHP_FUNCTION(array_multisort) hash->nNextFreeElement = array_size; if (repack) { zend_hash_to_packed(hash); - } else { + } else if (!(HT_FLAGS(hash) & HASH_FLAG_PACKED)) { zend_hash_rehash(hash); } } |