summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-07-11 18:05:10 +0200
committerAnatol Belski <ab@php.net>2018-07-11 18:05:28 +0200
commit81eb8e7507bdec00a6dde4ac759d668d048b6f13 (patch)
treea2cf5881944c2cc746955964e299ae0c050467f3 /ext/pcre/php_pcre.c
parent85ee47eda00d68219f9ff34965bdede1e45f1f63 (diff)
downloadphp-git-81eb8e7507bdec00a6dde4ac759d668d048b6f13.tar.gz
Mark conditions unexpected
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 7555428f42..f4c6ab1ac7 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -388,7 +388,7 @@ static PHP_MINIT_FUNCTION(pcre)
char *version;
#ifdef HAVE_PCRE_JIT_SUPPORT
- if (!pcre2_init_ok) {
+ if (UNEXPECTED(!pcre2_init_ok)) {
/* Retry. */
php_pcre_init_pcre2(PCRE_G(jit));
if (!pcre2_init_ok) {
@@ -444,7 +444,7 @@ static PHP_MSHUTDOWN_FUNCTION(pcre)
/* {{{ PHP_RINIT_FUNCTION(pcre) */
static PHP_RINIT_FUNCTION(pcre)
{
- if (!pcre2_init_ok) {
+ if (UNEXPECTED(!pcre2_init_ok)) {
/* Retry. */
php_pcre_mutex_lock();
php_pcre_init_pcre2(PCRE_G(jit));