cvs: ZendEngine2(PHP_5_3) / zend_exceptions.c

[email protected] ("Felipe Pena") Mon, 11 May 2009 14:14:52 -0000
Newsgroups php.zend-engine.cvs
Message-ID <cvsfelipe1242051292@cvsserver>
felipe		Mon May 11 14:14:52 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /ZendEngine2	zend_exceptions.c 
  Log:
  - Added missing param checks
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_exceptions.c?r1=1.79.2.6.2.9.2.20&r2=1.79.2.6.2.9.2.21&diff_format=u
Index: ZendEngine2/zend_exceptions.c
diff -u ZendEngine2/zend_exceptions.c:1.79.2.6.2.9.2.20 ZendEngine2/zend_exceptions.c:1.79.2.6.2.9.2.21
--- ZendEngine2/zend_exceptions.c:1.79.2.6.2.9.2.20	Fri Jan  2 13:14:49 2009
+++ ZendEngine2/zend_exceptions.c	Mon May 11 14:14:52 2009
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_exceptions.c,v 1.79.2.6.2.9.2.20 2009/01/02 13:14:49 helly Exp $ */
+/* $Id: zend_exceptions.c,v 1.79.2.6.2.9.2.21 2009/05/11 14:14:52 felipe Exp $ */
 
 #include "zend.h"
 #include "zend_API.h"
@@ -490,6 +490,8 @@
 	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, 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 @@
 	int len = 0;
 	zend_fcall_info fci;
 	zval fname;
+	
+	DEFAULT_0_PARAMS;
 
 	exception = getThis();
 	ZVAL_STRINGL(&fname, "gettraceasstring", sizeof("gettraceasstring")-1, 1);