diff options
author | Mark Spruiell <mes@zeroc.com> | 2009-10-22 16:43:02 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2009-10-22 16:43:02 -0700 |
commit | f1ccf47b0db983418ae6125bf824c956b2e7160a (patch) | |
tree | 98c1c875812455b3a1b6744bd579e6e9805c2ba9 /php/src/IcePHP/Connection.cpp | |
parent | fixing VC6 compilation failures (diff) | |
download | ice-f1ccf47b0db983418ae6125bf824c956b2e7160a.tar.bz2 ice-f1ccf47b0db983418ae6125bf824c956b2e7160a.tar.xz ice-f1ccf47b0db983418ae6125bf824c956b2e7160a.zip |
PHP fixes for 5.3
Diffstat (limited to 'php/src/IcePHP/Connection.cpp')
-rw-r--r-- | php/src/IcePHP/Connection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/php/src/IcePHP/Connection.cpp b/php/src/IcePHP/Connection.cpp index d658a80139a..9ec42a64078 100644 --- a/php/src/IcePHP/Connection.cpp +++ b/php/src/IcePHP/Connection.cpp @@ -479,7 +479,7 @@ IcePHP::createConnectionInfo(zval* zv, const Ice::ConnectionInfoPtr& p TSRMLS_DC Ice::UDPConnectionInfoPtr info = Ice::UDPConnectionInfoPtr::dynamicCast(p); if((status = object_init_ex(zv, udpConnectionInfoClassEntry)) == SUCCESS) { - add_property_string(zv, STRCAST("mcastAddress"), STRCAST(info->mcastAddress.c_str()), 1); + add_property_string(zv, STRCAST("mcastAddress"), const_cast<char*>(info->mcastAddress.c_str()), 1); add_property_long(zv, STRCAST("mcastPort"), static_cast<long>(info->mcastPort)); } } @@ -501,14 +501,14 @@ IcePHP::createConnectionInfo(zval* zv, const Ice::ConnectionInfoPtr& p TSRMLS_DC if(Ice::IPConnectionInfoPtr::dynamicCast(p)) { Ice::IPConnectionInfoPtr info = Ice::IPConnectionInfoPtr::dynamicCast(p); - add_property_string(zv, STRCAST("localAddress"), STRCAST(info->localAddress.c_str()), 1); + add_property_string(zv, STRCAST("localAddress"), const_cast<char*>(info->localAddress.c_str()), 1); add_property_long(zv, STRCAST("localPort"), static_cast<long>(info->localPort)); - add_property_string(zv, STRCAST("remoteAddress"), STRCAST(info->remoteAddress.c_str()), 1); + add_property_string(zv, STRCAST("remoteAddress"), const_cast<char*>(info->remoteAddress.c_str()), 1); add_property_long(zv, STRCAST("remotePort"), static_cast<long>(info->remotePort)); } add_property_bool(zv, STRCAST("incoming"), p->incoming ? 1 : 0); - add_property_string(zv, STRCAST("adapterName"), STRCAST(p->adapterName.c_str()), 1); + add_property_string(zv, STRCAST("adapterName"), const_cast<char*>(p->adapterName.c_str()), 1); Wrapper<Ice::ConnectionInfoPtr>* obj = Wrapper<Ice::ConnectionInfoPtr>::extract(zv TSRMLS_CC); assert(obj); |