summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--php/src/ice/profile.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/php/src/ice/profile.cpp b/php/src/ice/profile.cpp
index d438f523d19..4dac82b28f4 100644
--- a/php/src/ice/profile.cpp
+++ b/php/src/ice/profile.cpp
@@ -106,6 +106,11 @@ static const char* _coreTypes =
" Ice_LocalException::__construct($message);\n"
" }\n"
"\n"
+ " function __toString()\n"
+ " {\n"
+ " return $this->unknown;\n"
+ " }\n"
+ "\n"
" var $unknown;\n"
"}\n"
"\n"
@@ -132,6 +137,14 @@ static const char* _coreTypes =
" Ice_LocalException::__construct($message);\n"
" }\n"
"\n"
+ " function __toString()\n"
+ " {\n"
+ " return get_class($this) . \"\\n\" .\n"
+ " \" identity: \" . Ice_identityToString($this->id) . \"\\n\" .\n"
+ " \" facet: \" . implode(',', $this->facet) . \"\\n\" .\n"
+ " \" operation: \" . $this->operation;\n"
+ " }\n"
+ "\n"
" var $id;\n"
" var $facet;\n"
" var $operation;\n"
@@ -184,6 +197,11 @@ static const char* _coreTypes =
" Ice_MarshalException::__construct($message);\n"
" }\n"
"\n"
+ " function __toString()\n"
+ " {\n"
+ " return \"Ice_NoObjectFactoryException (type = `\" . $this->type . \"')\";\n"
+ " }\n"
+ "\n"
" var $type;\n"
"}\n"
"\n"