diff options
author | Anatol Belski <ab@php.net> | 2017-11-13 23:01:43 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-11-14 00:01:52 +0100 |
commit | e8ac7d8dd507b3fafcb4bb25ecf35dafb5c9b2c5 (patch) | |
tree | 8273f308a86295de0ff1bd008be4b02cdc44b1a2 /ext/pcre/php_pcre.c | |
parent | 81dd6de3a9ae4ddd5a7652258301b67d175986f7 (diff) | |
download | php-git-e8ac7d8dd507b3fafcb4bb25ecf35dafb5c9b2c5.tar.gz |
Fix calculation as sync with 48cee6d1
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 1da619a590..d528105f77 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -842,7 +842,7 @@ PHPAPI pcre2_match_data *php_pcre_create_match_data(uint32_t capture_count, pcre rc = pcre2_pattern_info(re, PCRE2_INFO_CAPTURECOUNT, &capture_count); } - if (rc >= 0 && (capture_count + 1) * 3 <= PHP_PCRE_PREALLOC_MDATA_SIZE) { + if (rc >= 0 && capture_count + 1 <= PHP_PCRE_PREALLOC_MDATA_SIZE) { return mdata; } |