cvs: ZendEngine2 / zend_objects_API.c
| From: | Andi Gutmans | Date: | Thu, 11 Mar 2004 13:27:18 +0000 |
| Subject: | cvs: ZendEngine2 / zend_objects_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2462@lists.php.net to get a copy of this message | ||
andi Thu Mar 11 08:27:18 2004 EDT
Modified files:
/ZendEngine2 zend_objects_API.c
Log:
- Attempt to fix bug #27535
http://cvs.php.net/diff.php/ZendEngine2/zend_objects_API.c?r1=1.33&r2=1.34&ty=u
Index: ZendEngine2/zend_objects_API.c
diff -u ZendEngine2/zend_objects_API.c:1.33 ZendEngine2/zend_objects_API.c:1.34
--- ZendEngine2/zend_objects_API.c:1.33 Wed Mar 3 04:58:58 2004
+++ ZendEngine2/zend_objects_API.c Thu Mar 11 08:27:18 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_objects_API.c,v 1.33 2004/03/03 09:58:58 andi Exp $ */
+/* $Id: zend_objects_API.c,v 1.34 2004/03/11 13:27:18 andi Exp $ */
#include "zend.h"
#include "zend_globals.h"
@@ -65,6 +65,7 @@
if (objects->object_buckets[i].valid) {
struct _store_object *obj = &objects->object_buckets[i].bucket.obj;
+ objects->object_buckets[i].valid = 0;
if (obj->free_storage) {
obj->free_storage(obj->object TSRMLS_CC);
}
@@ -140,7 +141,7 @@
}
}
if (obj->refcount == 1) {
- if (obj->free_storage) {
+ if (obj->free_storage && EG(objects_store).object_buckets[handle].valid) {
obj->free_storage(obj->object TSRMLS_CC);
}
ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST();