summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpp/src/slice2php/Main.cpp2
-rw-r--r--php/test/Ice/optional/Client.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2php/Main.cpp b/cpp/src/slice2php/Main.cpp
index 17cb92dd475..a59c75e6751 100644
--- a/cpp/src/slice2php/Main.cpp
+++ b/cpp/src/slice2php/Main.cpp
@@ -1398,7 +1398,7 @@ CodeVisitor::writeConstructorParams(const MemberInfoList& members)
}
else if(member->optional())
{
- _out << "Ice_Unset";
+ _out << (_ns ? scopedToName("::Ice::None", _ns) : "Ice_Unset");
}
else
{
diff --git a/php/test/Ice/optional/Client.php b/php/test/Ice/optional/Client.php
index e8e54af1e06..b189d06bce9 100644
--- a/php/test/Ice/optional/Client.php
+++ b/php/test/Ice/optional/Client.php
@@ -36,7 +36,7 @@ function allTests($communicator)
global $Ice_Encoding_1_0;
$enum = $NS ? constant("Test\\MyEnum::MyEnumMember") : constant("Test_MyEnum::MyEnumMember");
- $none = $MS ? constant("Ice\\None") : constant("Ice_Unset");
+ $none = $NS ? constant("Ice\\None") : constant("Ice_Unset");
echo "testing stringToProxy... ";
flush();