summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2017-03-14 10:30:49 -0700
committerSara Golemon <pollita@php.net>2017-03-14 11:23:02 -0700
commitc74bc87c74f48bc55541b3bf2fc67d595f58a3b5 (patch)
treef6a2a477370122232f54f5e95380c42d5d4b28e9 /ext/mbstring/php_mbregex.c
parent16ae9f82e82e2aea5d7deaf8f9a9c825a56dfcc1 (diff)
downloadphp-git-c74bc87c74f48bc55541b3bf2fc67d595f58a3b5.tar.gz
Minor optimizations to array_keys()/array_values()
array_values(): When the input is an empty array or a packed array with no gaps, return the original array. array_keys(): When the input is an empty array, return the original array. When the input is a packed array with no holes (and no search key specified), populate the return with a simple range(0, count($input) - 1)
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
0 files changed, 0 insertions, 0 deletions