From f1ccf47b0db983418ae6125bf824c956b2e7160a Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Thu, 22 Oct 2009 16:43:02 -0700 Subject: PHP fixes for 5.3 --- php/src/IcePHP/Connection.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'php/src/IcePHP/Connection.cpp') 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(info->mcastAddress.c_str()), 1); add_property_long(zv, STRCAST("mcastPort"), static_cast(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(info->localAddress.c_str()), 1); add_property_long(zv, STRCAST("localPort"), static_cast(info->localPort)); - add_property_string(zv, STRCAST("remoteAddress"), STRCAST(info->remoteAddress.c_str()), 1); + add_property_string(zv, STRCAST("remoteAddress"), const_cast(info->remoteAddress.c_str()), 1); add_property_long(zv, STRCAST("remotePort"), static_cast(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(p->adapterName.c_str()), 1); Wrapper* obj = Wrapper::extract(zv TSRMLS_CC); assert(obj); -- cgit v1.2.3