summaryrefslogtreecommitdiff
path: root/php/test
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2014-11-21 10:21:48 -0500
committerJoe George <joe@zeroc.com>2014-11-21 10:23:23 -0500
commitc76e3b9e577c3700da9769619fda0b1b00895ebd (patch)
treea77c21f7625180b8a2aa40e97300881226aba1ce /php/test
parentFix for ICE-5751: OS X Ice/retry test failure (diff)
downloadice-c76e3b9e577c3700da9769619fda0b1b00895ebd.tar.bz2
ice-c76e3b9e577c3700da9769619fda0b1b00895ebd.tar.xz
ice-c76e3b9e577c3700da9769619fda0b1b00895ebd.zip
ICE-5953 - Fixed test Ice/info crash when Ice.Default.Host was a hostname
Diffstat (limited to 'php/test')
-rw-r--r--php/test/Ice/info/Client.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/php/test/Ice/info/Client.php b/php/test/Ice/info/Client.php
index b39a7250f3c..3d378876024 100644
--- a/php/test/Ice/info/Client.php
+++ b/php/test/Ice/info/Client.php
@@ -124,8 +124,11 @@ function allTests($communicator)
test(!$info->incoming);
test(strlen($info->adapterName) == 0);
test($info->remotePort == 12010);
- test($info->remoteAddress == $defaultHost);
- test($info->localAddress == $defaultHost);
+ if($defaultHost == "127.0.0.1")
+ {
+ test($info->remoteAddress == $defaultHost);
+ test($info->localAddress == $defaultHost);
+ }
$ctx = $testIntf->getConnectionInfoAsContext();
test($ctx["incoming"] == "true");