summaryrefslogtreecommitdiff
path: root/lib/php
diff options
context:
space:
mode:
authorcyy <cyyever@outlook.com>2019-01-05 19:27:00 +0800
committerJames E. King III <jking@apache.org>2019-01-07 08:11:37 -0500
commit0f43f95b89db01a8c68225824f8aa7fd4522007e (patch)
tree3a08b4fc6b567a7aa8fde17c2e3ddf72e78e4365 /lib/php
parent8cb3b6854818bf63d3208afaf4dc9e70c6137500 (diff)
downloadthrift-0f43f95b89db01a8c68225824f8aa7fd4522007e.tar.gz
revert noexcept changings
Diffstat (limited to 'lib/php')
-rw-r--r--lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp b/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp
index 019e2a74e..63c8905a5 100644
--- a/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp
+++ b/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp
@@ -111,23 +111,23 @@ ZEND_GET_MODULE(thrift_protocol)
class PHPExceptionWrapper : public std::exception {
public:
- PHPExceptionWrapper(zval* _ex) noexcept {
+ PHPExceptionWrapper(zval* _ex) throw() {
ZVAL_COPY(&ex, _ex);
snprintf(_what, 40, "PHP exception zval=%p", _ex);
}
- PHPExceptionWrapper(zend_object* _exobj) noexcept {
+ PHPExceptionWrapper(zend_object* _exobj) throw() {
ZVAL_OBJ(&ex, _exobj);
snprintf(_what, 40, "PHP exception zval=%p", _exobj);
}
- ~PHPExceptionWrapper() noexcept {
+ ~PHPExceptionWrapper() throw() {
zval_dtor(&ex);
}
- const char* what() const noexcept {
+ const char* what() const throw() {
return _what;
}
- operator zval*() const noexcept {
+ operator zval*() const throw() {
return const_cast<zval*>(&ex);
} // Zend API doesn't do 'const'...
protected: