cvs: ZendEngine2(PHP_5_3) / zend_gc.c

[email protected] ("Dmitry Stogov")
Newsgroups php.zend-engine.cvs
Message-ID <cvsdmitry1201175334@cvsserver>
dmitry		Thu Jan 24 11:48:54 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /ZendEngine2	zend_gc.c 
  Log:
  Fixed possible GC failure because of EG(object_store).object_buckets reallocation
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_gc.c?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: ZendEngine2/zend_gc.c
diff -u ZendEngine2/zend_gc.c:1.1.2.1 ZendEngine2/zend_gc.c:1.1.2.2
--- ZendEngine2/zend_gc.c:1.1.2.1	Tue Jan 22 09:27:47 2008
+++ ZendEngine2/zend_gc.c	Thu Jan 24 11:48:54 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_gc.c,v 1.1.2.1 2008/01/22 09:27:47 dmitry Exp $ */
+/* $Id: zend_gc.c,v 1.1.2.2 2008/01/24 11:48:54 dmitry Exp $ */
 
 #include "zend.h"
 #include "zend_API.h"
@@ -203,6 +203,7 @@
 				zv->refcount__gc++;
 				gc_collect_cycles(TSRMLS_C);
 				zv->refcount__gc--;
+				obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(zv)].bucket.obj;
 				GC_SET_PURPLE(obj->buffered);
 				newRoot = GC_G(unused);
 			}
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.