Skip to content

Commit b94fd3a

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fixed incorrect logical condition
2 parents 41ae63c + 6f0b232 commit b94fd3a

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
@@ -2023,8 +2023,8 @@ PHP_METHOD(SoapClient, __construct)
20232023
}
20242024

20252025
if ((tmp = zend_hash_str_find(ht, "soap_version", sizeof("soap_version")-1)) != NULL) {
2026-
if (Z_TYPE_P(tmp) == IS_LONG ||
2027-
(Z_LVAL_P(tmp) == SOAP_1_1 && Z_LVAL_P(tmp) == SOAP_1_2)) {
2026+
if (Z_TYPE_P(tmp) == IS_LONG &&
2027+
(Z_LVAL_P(tmp) == SOAP_1_1 || Z_LVAL_P(tmp) == SOAP_1_2)) {
20282028
soap_version = Z_LVAL_P(tmp);
20292029
}
20302030
}

0 commit comments

Comments
 (0)