Skip to content

Commit 16260a3

Browse files
committed
Fix [-Wlogical-op] in SOAP extension
1 parent fcd587d commit 16260a3

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)