MCPcopy Create free account
hub / github.com/apache/thrift / PHPExceptionWrapper

Class PHPExceptionWrapper

lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:105–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103#endif
104
105class PHPExceptionWrapper : public std::exception {
106public:
107 PHPExceptionWrapper(zval* _ex) throw() {
108 ZVAL_COPY(&ex, _ex);
109 snprintf(_what, 40, "PHP exception zval=%p", _ex);
110 }
111
112 PHPExceptionWrapper(zend_object* _exobj) throw() {
113 ZVAL_OBJ(&ex, _exobj);
114 snprintf(_what, 40, "PHP exception zval=%p", _exobj);
115 }
116 ~PHPExceptionWrapper() throw() {
117 zval_dtor(&ex);
118 }
119
120 const char* what() const throw() {
121 return _what;
122 }
123 operator zval*() const throw() {
124 return const_cast<zval*>(&ex);
125 } // Zend API doesn't do 'const'...
126protected:
127 zval ex;
128 char _what[40];
129} ;
130
131class PHPTransport {
132protected:

Callers 10

PHPTransportMethod · 0.85
directFlushMethod · 0.85
directWriteMethod · 0.85
put_backMethod · 0.85
refillMethod · 0.85
createObjectFunction · 0.85
throw_tprotocolexceptionFunction · 0.85
binary_deserializeFunction · 0.85
PHP_FUNCTIONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected