summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r--Zend/zend_exceptions.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index f5e6d92308..f4334db531 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -130,7 +130,7 @@ ZEND_API void zend_throw_exception_internal(zval *exception) /* {{{ */
ZEND_API void zend_clear_exception(void) /* {{{ */
{
if (EG(prev_exception)) {
-
+
OBJ_RELEASE(EG(prev_exception));
EG(prev_exception) = NULL;
}
@@ -499,7 +499,7 @@ static void _build_trace_string(smart_str *str, HashTable *ht, uint32_t num) /*
if (Z_TYPE_P(tmp) == IS_ARRAY) {
size_t last_len = str->s->len;
zval *arg;
-
+
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(tmp), arg) {
_build_trace_args(arg, str);
} ZEND_HASH_FOREACH_END();
@@ -525,7 +525,7 @@ ZEND_METHOD(exception, getTraceAsString)
uint32_t num = 0;
DEFAULT_0_PARAMS;
-
+
trace = zend_read_property(default_exception_ce, getThis(), "trace", sizeof("trace")-1, 1);
ZEND_HASH_FOREACH_NUM_KEY_VAL(Z_ARRVAL_P(trace), index, frame) {
if (Z_TYPE_P(frame) != IS_ARRAY) {
@@ -541,7 +541,7 @@ ZEND_METHOD(exception, getTraceAsString)
smart_str_appends(&str, " {main}");
smart_str_0(&str);
- RETURN_NEW_STR(str.s);
+ RETURN_NEW_STR(str.s);
}
/* }}} */
@@ -586,9 +586,9 @@ ZEND_METHOD(exception, __toString)
zend_string *str;
zend_fcall_info fci;
zval fname;
-
+
DEFAULT_0_PARAMS;
-
+
str = STR_EMPTY_ALLOC();
exception = getThis();
@@ -798,7 +798,7 @@ ZEND_API void zend_exception_error(zend_object *ex, int severity) /* {{{ */
{
zval exception;
zend_class_entry *ce_exception;
-
+
ZVAL_OBJ(&exception, ex);
ce_exception = Z_OBJCE(exception);
if (instanceof_function(ce_exception, default_exception_ce)) {