From: George Peter Banyard Date: Wed, 30 Sep 2020 05:29:00 +0000 (+0300) Subject: Fixed incorrect logical condition X-Git-Tag: php-7.3.24RC1~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f5c47af3bab388b9a8b70bf765ee8f3153649dc;p=php Fixed incorrect logical condition --- diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 3651779972..64e32b3359 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -2325,8 +2325,8 @@ PHP_METHOD(SoapClient, SoapClient) } if ((tmp = zend_hash_str_find(ht, "soap_version", sizeof("soap_version")-1)) != NULL) { - if (Z_TYPE_P(tmp) == IS_LONG || - (Z_LVAL_P(tmp) == SOAP_1_1 && Z_LVAL_P(tmp) == SOAP_1_2)) { + if (Z_TYPE_P(tmp) == IS_LONG && + (Z_LVAL_P(tmp) == SOAP_1_1 || Z_LVAL_P(tmp) == SOAP_1_2)) { soap_version = Z_LVAL_P(tmp); } }