mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Reduce error buffer size
120 bytes is ample, the doc says.
This commit is contained in:
parent
169d454593
commit
0630e3bc03
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue