]> granicus.if.org Git - php/commitdiff
Fixed incorrect logical condition
authorGeorge Peter Banyard <girgias@php.net>
Wed, 30 Sep 2020 05:29:00 +0000 (08:29 +0300)
committerDmitry Stogov <dmitry@zend.com>
Wed, 30 Sep 2020 05:29:00 +0000 (08:29 +0300)
ext/soap/soap.c

index 3651779972e70aad0c6adfb4b3edf9fca2ff01eb..64e32b3359e8090b696744bd666f961e975ac7c0 100644 (file)
@@ -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);
                        }
                }