summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-07-05 17:23:47 +0200
committerAnatol Belski <ab@php.net>2018-07-05 17:24:38 +0200
commit0630e3bc03ba3ccb9c7ca974ebab7aaa98322444 (patch)
treed9a5351f33dd1ad4b2730195aadbcc804fcfb134 /ext/pcre/php_pcre.c
parent169d4545931a43df258608c6cfb59b3e4bb92776 (diff)
downloadphp-git-0630e3bc03ba3ccb9c7ca974ebab7aaa98322444.tar.gz
Reduce error buffer size
120 bytes is ample, the doc says.
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index c365c9f475..7555428f42 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -534,7 +534,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex)
pcre2_code *re = NULL;
uint32_t coptions = 0;
uint32_t extra_coptions = PHP_PCRE_DEFAULT_EXTRA_COPTIONS;
- PCRE2_UCHAR error[256];
+ PCRE2_UCHAR error[128];
PCRE2_SIZE erroffset;
int errnumber;
char delimiter;