summaryrefslogtreecommitdiff
path: root/php/src/php5
diff options
context:
space:
mode:
Diffstat (limited to 'php/src/php5')
-rw-r--r--php/src/php5/Connection.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/php/src/php5/Connection.cpp b/php/src/php5/Connection.cpp
index 8a894b2457a..d845f548768 100644
--- a/php/src/php5/Connection.cpp
+++ b/php/src/php5/Connection.cpp
@@ -747,10 +747,18 @@ IcePHP::createConnectionInfo(zval* zv, const Ice::ConnectionInfoPtr& p TSRMLS_DC
add_property_string(zv, STRCAST("cipher"), const_cast<char*>(info->cipher.c_str()), 1);
add_property_bool(zv, STRCAST("verified"), info->verified ? 1 : 0);
+
zval* zarr;
MAKE_STD_ZVAL(zarr);
AutoDestroy listDestroyer(zarr);
- if(createStringArray(zarr, info->certs TSRMLS_CC))
+
+ Ice::StringSeq encoded;
+ for(vector<IceSSL::CertificatePtr>::const_iterator i = info->certs.begin(); i != info->certs.end(); ++i)
+ {
+ encoded.push_back((*i)->encode());
+ }
+
+ if(createStringArray(zarr, encoded TSRMLS_CC))
{
add_property_zval(zv, STRCAST("certs"), zarr);
}