cvs: ZendEngine2 / zend_exceptions.c

"Felipe Pena" <[email protected]> Mon, 11 May 2009 14:13:41 -0000
Newsgroups gmane.comp.php.cvs.zend
Message-ID <cvsfelipe1242051221@cvsserver>
felipe		Mon May 11 14:13:41 2009 UTC

  Modified files:              
    /ZendEngine2	zend_exceptions.c 
  Log:
  - Added missing param checks
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_exceptions.c?r1=1.133&r2=1.134&diff_format=u
Index: ZendEngine2/zend_exceptions.c
diff -u ZendEngine2/zend_exceptions.c:1.133 ZendEngine2/zend_exceptions.c:1.134
--- ZendEngine2/zend_exceptions.c:1.133	Thu Mar 26 20:01:38 2009
+++ ZendEngine2/zend_exceptions.c	Mon May 11 14:13:41 2009
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_exceptions.c,v 1.133 2009/03/26 20:01:38 felipe Exp $ */
+/* $Id: zend_exceptions.c,v 1.134 2009/05/11 14:13:41 felipe Exp $ */
 
 #include "zend.h"
 #include "zend_API.h"
@@ -563,6 +563,8 @@
 	zval *trace;
 	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);
@@ -582,6 +584,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);
 }
@@ -607,6 +612,8 @@
 	int len = 0;
 	zend_fcall_info fci;
 	zval fname;
+	
+	DEFAULT_0_PARAMS;
 
 	exception = getThis();
 	ZVAL_ASCII_STRINGL(&fname, "gettraceasstring", sizeof("gettraceasstring")-1, 1);



-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php