summaryrefslogtreecommitdiff
path: root/cpp/src/slice2php/Main.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-01-19 16:27:53 +0100
committerJose <jose@zeroc.com>2016-01-19 16:27:53 +0100
commit6faa017414ad0321fd28da58ab5d3c851ec7f1f2 (patch)
treee9e9146105ffc5c23edd72b38d02442ba1fe2bbd /cpp/src/slice2php/Main.cpp
parentFix IEE-162 - multiple bluetooth test failures (diff)
downloadice-6faa017414ad0321fd28da58ab5d3c851ec7f1f2.tar.bz2
ice-6faa017414ad0321fd28da58ab5d3c851ec7f1f2.tar.xz
ice-6faa017414ad0321fd28da58ab5d3c851ec7f1f2.zip
Deprecate ice_name and add ice_id
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