Skip to content

Commit 6f0b232

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fixed incorrect logical condition
2 parents a1cee97 + 3f5c47a commit 6f0b232

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/soap/soap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2338,8 +2338,8 @@ PHP_METHOD(SoapClient, SoapClient)
23382338
}
23392339

23402340
if ((tmp = zend_hash_str_find(ht, "soap_version", sizeof("soap_version")-1)) != NULL) {
2341-
if (Z_TYPE_P(tmp) == IS_LONG ||
2342-
(Z_LVAL_P(tmp) == SOAP_1_1 && Z_LVAL_P(tmp) == SOAP_1_2)) {
2341+
if (Z_TYPE_P(tmp) == IS_LONG &&
2342+
(Z_LVAL_P(tmp) == SOAP_1_1 || Z_LVAL_P(tmp) == SOAP_1_2)) {
23432343
soap_version = Z_LVAL_P(tmp);
23442344
}
23452345
}

0 commit comments

Comments
 (0)