summaryrefslogtreecommitdiff
path: root/cpp/src/slice2php/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2php/Main.cpp')
-rw-r--r--cpp/src/slice2php/Main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/slice2php/Main.cpp b/cpp/src/slice2php/Main.cpp
index 88a37ef619a..2e42bc8fb73 100644
--- a/cpp/src/slice2php/Main.cpp
+++ b/cpp/src/slice2php/Main.cpp
@@ -688,8 +688,17 @@ CodeVisitor::visitExceptionStart(const ExceptionPtr& p)
//
_out << sp << nl << "public function ice_name()";
_out << sb;
+ _out << nl << "trigger_error('ice_name() is deprecated use ice_id() instead.', E_DEPRECATED);";
_out << nl << "return '" << scoped.substr(2) << "';";
_out << eb;
+
+ //
+ // ice_name
+ //
+ _out << sp << nl << "public function ice_id()";
+ _out << sb;
+ _out << nl << "return '" << scoped << "';";
+ _out << eb;
//
// __toString