summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-03-19 11:55:40 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-03-19 11:59:25 +0100
commit525f19bef55387085e056891840dde344eb04338 (patch)
tree02fec07c421d7b1a5c6053420b42402f9bf612b1 /ext/pcre/php_pcre.h
parentdefd421c0f605a29de2edf3b903a9bf2607b940d (diff)
downloadphp-git-525f19bef55387085e056891840dde344eb04338.tar.gz
Use zend_string for subpat_names table
When used with preg_match_all or preg_replace_callback(_array), subpattern names can be used in the matches array many times. Switch the subpat_names table to use zend_string, so we don't have to allocate a new string every time. Also don't bother creating the table if no $matches were passed. This might be a regression for the case where preg_match() is used with many trailing named subpatterns that are skipped in the result array, but that seems rather contrived.
Diffstat (limited to 'ext/pcre/php_pcre.h')
0 files changed, 0 insertions, 0 deletions