From b3f3ddd1b56cc839f9c7ef5e96a3a8282851819e Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 28 Aug 2003 23:43:56 +0000 Subject: [PATCH] Add public read access to protected --- Zend/zend_default_classes.c | 8 ++++++++ Zend/zend_exceptions.c | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/Zend/zend_default_classes.c b/Zend/zend_default_classes.c index 6de12a69a2..40b29e55f3 100644 --- a/Zend/zend_default_classes.c +++ b/Zend/zend_default_classes.c @@ -115,12 +115,20 @@ ZEND_METHOD(exception, getcode) _default_exception_get_entry(getThis(), "code", sizeof("code")-1, return_value TSRMLS_CC); } +ZEND_METHOD(exception, gettrace) +{ + DEFAULT_0_PARAMS; + + _default_exception_get_entry(getThis(), "trace", sizeof("trace")-1, return_value TSRMLS_CC); +} + static zend_function_entry default_exception_functions[] = { ZEND_ME(exception, __construct, NULL, 0) ZEND_ME(exception, getmessage, NULL, 0) ZEND_ME(exception, getcode, NULL, 0) ZEND_ME(exception, getfile, NULL, 0) ZEND_ME(exception, getline, NULL, 0) + ZEND_ME(exception, gettrace, NULL, 0) {NULL, NULL, NULL} }; diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 6de12a69a2..40b29e55f3 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -115,12 +115,20 @@ ZEND_METHOD(exception, getcode) _default_exception_get_entry(getThis(), "code", sizeof("code")-1, return_value TSRMLS_CC); } +ZEND_METHOD(exception, gettrace) +{ + DEFAULT_0_PARAMS; + + _default_exception_get_entry(getThis(), "trace", sizeof("trace")-1, return_value TSRMLS_CC); +} + static zend_function_entry default_exception_functions[] = { ZEND_ME(exception, __construct, NULL, 0) ZEND_ME(exception, getmessage, NULL, 0) ZEND_ME(exception, getcode, NULL, 0) ZEND_ME(exception, getfile, NULL, 0) ZEND_ME(exception, getline, NULL, 0) + ZEND_ME(exception, gettrace, NULL, 0) {NULL, NULL, NULL} }; -- 2.40.0