cvs: ZendEngine2 / zend_execute.c

[email protected] ("Dmitry Stogov")
Newsgroups php.zend-engine.cvs
Message-ID <cvsdmitry1203336717@cvsserver>
dmitry		Mon Feb 18 12:11:57 2008 UTC

  Modified files:              
    /ZendEngine2	zend_execute.c 
  Log:
  Removed redundant refcount manipulations
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_execute.c?r1=1.787&r2=1.788&diff_format=u
Index: ZendEngine2/zend_execute.c
diff -u ZendEngine2/zend_execute.c:1.787 ZendEngine2/zend_execute.c:1.788
--- ZendEngine2/zend_execute.c:1.787	Thu Jan 24 09:41:48 2008
+++ ZendEngine2/zend_execute.c	Mon Feb 18 12:11:57 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_execute.c,v 1.787 2008/01/24 09:41:48 dmitry Exp $ */
+/* $Id: zend_execute.c,v 1.788 2008/02/18 12:11:57 dmitry Exp $ */
 
 #define ZEND_INTENSIVE_DEBUGGING 0
 
@@ -753,16 +753,12 @@
 		if (variable_ptr!=value) {
 			zend_uint refcount = Z_REFCOUNT_P(variable_ptr);
 
-			if (!is_tmp_var) {
-				Z_ADDREF_P(value);
-			}
 			garbage = *variable_ptr;
 			*variable_ptr = *value;
 			Z_SET_REFCOUNT_P(variable_ptr, refcount);
 			Z_SET_ISREF_P(variable_ptr);
 			if (!is_tmp_var) {
 				zendi_zval_copy_ctor(*variable_ptr);
-				Z_DELREF_P(value);
 			}
 			zendi_zval_dtor(garbage);
 			return variable_ptr;
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.