]> granicus.if.org Git - php/commitdiff
- Added missing param checks
authorFelipe Pena <felipe@php.net>
Mon, 11 May 2009 14:15:07 +0000 (14:15 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 11 May 2009 14:15:07 +0000 (14:15 +0000)
Zend/zend_exceptions.c

index 15a828196f4c442423f25584983d04f220929762..f342248291f6f6fae437789c0a88fc38b17be09c 100644 (file)
@@ -431,6 +431,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), (apply_func_args_t)_build_trace_string, 3, str, len, &num);
 
@@ -465,6 +467,8 @@ ZEND_METHOD(exception, __toString)
        int len;
        zend_fcall_info fci;
        zval fname;
+       
+       DEFAULT_0_PARAMS;
 
        _default_exception_get_entry(getThis(), "message", sizeof("message")-1, &message TSRMLS_CC);
        _default_exception_get_entry(getThis(), "file", sizeof("file")-1, &file TSRMLS_CC);