diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-22 11:01:59 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-22 11:20:02 +0200 |
commit | 41b8cdd2e0ec4478166c577e6a4d6a9223094f71 (patch) | |
tree | 15ee28bc2a23a61eb069d7d98797f3b7bca79a70 /ext/pcre/php_pcre.c | |
parent | 5eb6f593ee3d16880982711a2c2ac39bf2f5b807 (diff) | |
download | php-git-41b8cdd2e0ec4478166c577e6a4d6a9223094f71.tar.gz |
Don't leak pcre error_code across requests
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index ee340829ee..4a796062ec 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -486,6 +486,7 @@ static PHP_RINIT_FUNCTION(pcre) mdata_used = 0; #endif + PCRE_G(error_code) = PHP_PCRE_NO_ERROR; PCRE_G(gctx_zmm) = pcre2_general_context_create(php_pcre_emalloc, php_pcre_efree, NULL); if (!PCRE_G(gctx_zmm)) { return FAILURE; |