summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorTyson Andre <tysonandre775@hotmail.com>2019-10-29 19:48:28 -0400
committerNikita Popov <nikita.ppv@gmail.com>2019-10-30 10:26:56 +0100
commit96f361dca08bb6a7c9e0a729b31ac3eefe480215 (patch)
tree9414b0ad8276a959fbc7e3fbfb35377135d2ab18 /ext/standard/array.c
parentfee94da1271ba113baf1145a10dd0d5e7dd74f4f (diff)
downloadphp-git-96f361dca08bb6a7c9e0a729b31ac3eefe480215.tar.gz
Update documentation/comment for GH-4860
Fix folding for the new helper method. Clarify comment in UPGRADING: The performance on associative arrays would also improve, as long as no offsets were unset (no gaps). Packed arrays can have gaps. Closes GH-4873. [ci skip]
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 9b50186167..413ed319d7 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -3480,6 +3480,7 @@ static inline Bucket* find_bucket_at_offset(HashTable* ht, zend_long offset)
/* Return a pointer to the end of the bucket array. */
return ht->arData + ht->nNumUsed;
}
+/* }}} */
/* {{{ proto array array_slice(array input, int offset [, int length [, bool preserve_keys]])
Returns elements specified by offset and length */