summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-05-11 14:14:52 +0000
committerFelipe Pena <felipe@php.net>2009-05-11 14:14:52 +0000
commit85bcfa89ad54a2ad0fcff7d45a5b2402f2647c78 (patch)
tree9904c05644af299b81030e29779c5d6ceb2ba564 /Zend/zend_exceptions.c
parentd73b2316a1220493723cbfa9bbb6be59c392b002 (diff)
downloadphp-git-85bcfa89ad54a2ad0fcff7d45a5b2402f2647c78.tar.gz
- Added missing param checks
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r--Zend/zend_exceptions.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 369cf9c05c..9304dd55bc 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -490,6 +490,8 @@ ZEND_METHOD(exception, getTraceAsString)
char *res = estrdup(""), **str = &res, *s_tmp;
int res_len = 0, *len = &res_len, num = 0;
+ DEFAULT_0_PARAMS;
+
trace = zend_read_property(default_exception_ce, getThis(), "trace", sizeof("trace")-1, 1 TSRMLS_CC);
zend_hash_apply_with_arguments(Z_ARRVAL_P(trace) TSRMLS_CC, (apply_func_args_t)_build_trace_string, 3, str, len, &num);
@@ -508,6 +510,9 @@ ZEND_METHOD(exception, getTraceAsString)
ZEND_METHOD(exception, getPrevious)
{
zval *previous;
+
+ DEFAULT_0_PARAMS;
+
previous = zend_read_property(default_exception_ce, getThis(), "previous", sizeof("previous")-1, 1 TSRMLS_CC);
RETURN_ZVAL(previous, 1, 0);
}
@@ -533,6 +538,8 @@ ZEND_METHOD(exception, __toString)
int len = 0;
zend_fcall_info fci;
zval fname;
+
+ DEFAULT_0_PARAMS;
exception = getThis();
ZVAL_STRINGL(&fname, "gettraceasstring", sizeof("gettraceasstring")-1, 1);