summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/soap/soap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/soap/soap.c b/ext/soap/soap.c
index 50eae66e36..effd06b877 100644
--- a/ext/soap/soap.c
+++ b/ext/soap/soap.c
@@ -2465,8 +2465,9 @@ PHP_METHOD(SoapClient, SoapClient)
if (zend_hash_find(ht, "connection_timeout", sizeof("connection_timeout"), (void**)&tmp) == SUCCESS) {
convert_to_long(*tmp);
- if (Z_LVAL_PP(tmp) > 0)
- add_property_long(this_ptr, "_connection_timeout", Z_LVAL_PP(tmp));
+ if (Z_LVAL_PP(tmp) > 0) {
+ add_property_long(this_ptr, "_connection_timeout", Z_LVAL_PP(tmp));
+ }
}
if (context) {