cvs: ZendEngine2 / zend_builtin_functions.c

[email protected] ("Dmitry Stogov")
Newsgroups php.zend-engine.cvs
Message-ID <cvsdmitry1203439174@cvsserver>
dmitry		Tue Feb 19 16:39:34 2008 UTC

  Modified files:              
    /ZendEngine2	zend_builtin_functions.c 
  Log:
  Fixed memory leaks
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_builtin_functions.c?r1=1.364&r2=1.365&diff_format=u
Index: ZendEngine2/zend_builtin_functions.c
diff -u ZendEngine2/zend_builtin_functions.c:1.364 ZendEngine2/zend_builtin_functions.c:1.365
--- ZendEngine2/zend_builtin_functions.c:1.364	Tue Jan 29 12:08:42 2008
+++ ZendEngine2/zend_builtin_functions.c	Tue Feb 19 16:39:34 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_builtin_functions.c,v 1.364 2008/01/29 12:08:42 dmitry Exp $ */
+/* $Id: zend_builtin_functions.c,v 1.365 2008/02/19 16:39:34 dmitry Exp $ */
 
 #include "zend.h"
 #include "zend_API.h"
@@ -1270,6 +1270,7 @@
 		had_orig_error_handler = 1;
 		*return_value = *EG(user_error_handler);
 		zval_copy_ctor(return_value);
+		INIT_PZVAL(return_value);
 		zend_stack_push(&EG(user_error_handlers_error_reporting), &EG(user_error_handler_error_reporting), sizeof(EG(user_error_handler_error_reporting)));
 		zend_ptr_stack_push(&EG(user_error_handlers), EG(user_error_handler));
 	}
@@ -1284,6 +1285,7 @@
 	EG(user_error_handler_error_reporting) = (int)error_type;
 	*EG(user_error_handler) = *error_handler;
 	zval_copy_ctor(EG(user_error_handler));
+	INIT_PZVAL(EG(user_error_handler));
 
 	if (!had_orig_error_handler) {
 		RETURN_NULL();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.