com php-src: Mark conditions unexpected: ext/pcre/php_pcre. c

From: Date: Wed, 11 Jul 2018 16:05:28 +0000
Subject: com php-src: Mark conditions unexpected: ext/pcre/php_pcre. c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102525@lists.php.net to get a copy of this message
Commit: 81eb8e7507bdec00a6dde4ac759d668d048b6f13 Author: Anatol Belski <ab@php.net> Wed, 11 Jul 2018 18:05:10 +0200 Parents: 85ee47eda00d68219f9ff34965bdede1e45f1f63 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=81eb8e7507bdec00a6dde4ac759d668d048b6f13 Log: Mark conditions unexpected Changed paths: M ext/pcre/php_pcre.c Diff: diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 7555428..f4c6ab1 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));

« previous php.cvs (#102525) next »