Skip to content

Commit 3f5c47a

Browse files
Girgiasdstogov
authored andcommitted
Fixed incorrect logical condition
1 parent ae95d06 commit 3f5c47a

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
@@ -2325,8 +2325,8 @@ PHP_METHOD(SoapClient, SoapClient)
23252325
}
23262326

23272327
if ((tmp = zend_hash_str_find(ht, "soap_version", sizeof("soap_version")-1)) != NULL) {
2328-
if (Z_TYPE_P(tmp) == IS_LONG ||
2329-
(Z_LVAL_P(tmp) == SOAP_1_1 && Z_LVAL_P(tmp) == SOAP_1_2)) {
2328+
if (Z_TYPE_P(tmp) == IS_LONG &&
2329+
(Z_LVAL_P(tmp) == SOAP_1_1 || Z_LVAL_P(tmp) == SOAP_1_2)) {
23302330
soap_version = Z_LVAL_P(tmp);
23312331
}
23322332
}

0 commit comments

Comments
 (0)