summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-03-25 15:46:43 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-03-26 10:10:41 +0100
commita9b01b60d89506b4f661b7108836d217158e83a2 (patch)
treeb798683572114eddadae85e6c922f071a9f21a0c /ext/pcre/php_pcre.h
parent886b2a22e98ae96497a27d581795debaf6407c5c (diff)
downloadphp-git-a9b01b60d89506b4f661b7108836d217158e83a2.tar.gz
Make PCRE cache per-request on CLI
There will only be one request on the CLI SAPI, so there is no advantage to having a persistent PCRE cache. Using a non-persistent cache allows us to use arbitrary strings as cache keys.
Diffstat (limited to 'ext/pcre/php_pcre.h')
-rw-r--r--ext/pcre/php_pcre.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pcre/php_pcre.h b/ext/pcre/php_pcre.h
index ba38a26a08..b59f16e898 100644
--- a/ext/pcre/php_pcre.h
+++ b/ext/pcre/php_pcre.h
@@ -72,6 +72,7 @@ ZEND_BEGIN_MODULE_GLOBALS(pcre)
#ifdef HAVE_PCRE_JIT_SUPPORT
zend_bool jit;
#endif
+ zend_bool per_request_cache;
int error_code;
/* Used for unmatched subpatterns in OFFSET_CAPTURE mode */
zval unmatched_null_pair;