summaryrefslogtreecommitdiff
path: root/php/src/php7/Communicator.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2018-11-01 17:14:06 -0400
committerBernard Normier <bernard@zeroc.com>2018-11-01 17:14:06 -0400
commit3a763985c52246b1b804cdd7ee7bd49a82e76bd3 (patch)
treee35b1b0bdf6715ed784d0c86482355528bee81ee /php/src/php7/Communicator.cpp
parentVisual Studio and msbuild updates (diff)
downloadice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.bz2
ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.xz
ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.zip
Increase Visual Studio warning level to Level4
Fixes #223.
Diffstat (limited to 'php/src/php7/Communicator.cpp')
-rw-r--r--php/src/php7/Communicator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/php/src/php7/Communicator.cpp b/php/src/php7/Communicator.cpp
index fc8575820bc..85d9b2a401d 100644
--- a/php/src/php7/Communicator.cpp
+++ b/php/src/php7/Communicator.cpp
@@ -1224,7 +1224,7 @@ ZEND_FUNCTION(Ice_initialize)
member = "properties";
{
- if((data = zend_hash_str_find(Z_OBJPROP_P(zvinit), STRCAST(member.c_str()), member.size())))
+ if((data = zend_hash_str_find(Z_OBJPROP_P(zvinit), STRCAST(member.c_str()), member.size())) != 0)
{
assert(Z_TYPE_P(data) == IS_INDIRECT);
if(!fetchProperties(Z_INDIRECT_P(data), initData.properties))
@@ -1236,7 +1236,7 @@ ZEND_FUNCTION(Ice_initialize)
member = "logger";
{
- if((data = zend_hash_str_find(Z_OBJPROP_P(zvinit), STRCAST(member.c_str()), member.size())))
+ if((data = zend_hash_str_find(Z_OBJPROP_P(zvinit), STRCAST(member.c_str()), member.size())) != 0)
{
assert(Z_TYPE_P(data) == IS_INDIRECT);
if(!fetchLogger(Z_INDIRECT_P(data), initData.logger))