diff options
| author | Anatol Belski <ab@php.net> | 2018-07-05 17:23:47 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2018-07-05 17:24:38 +0200 |
| commit | 0630e3bc03ba3ccb9c7ca974ebab7aaa98322444 (patch) | |
| tree | d9a5351f33dd1ad4b2730195aadbcc804fcfb134 /ext/pgsql | |
| parent | 169d4545931a43df258608c6cfb59b3e4bb92776 (diff) | |
| download | php-git-0630e3bc03ba3ccb9c7ca974ebab7aaa98322444.tar.gz | |
Reduce error buffer size
120 bytes is ample, the doc says.
Diffstat (limited to 'ext/pgsql')
| -rw-r--r-- | ext/pgsql/pgsql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 1235781d98..d22b6dfc59 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -5759,7 +5759,7 @@ static int php_pgsql_convert_match(const char *str, size_t str_len, const char * re = pcre2_compile((PCRE2_SPTR)regex, regex_len, options, &errnumber, &err_offset, php_pcre_cctx()); if (NULL == re) { - PCRE2_UCHAR err_msg[256]; + PCRE2_UCHAR err_msg[128]; pcre2_get_error_message(errnumber, err_msg, sizeof(err_msg)); php_error_docref(NULL, E_WARNING, "Cannot compile regex: '%s'", err_msg); return FAILURE; |
