cvs: ZendEngine2(PHP_5_1) / zend_objects_API.c /tests bug36006.phpt php-src NEWS
| From: | Dmitry Stogov | Date: | Mon, 16 Jan 2006 10:12:36 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_1) / zend_objects_API.c /tests bug36006.phpt php-src NEWS | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4522@lists.php.net to get a copy of this message | ||
dmitry Mon Jan 16 10:12:36 2006 UTC
Added files: (Branch: PHP_5_1)
/ZendEngine2/tests bug36006.phpt
Modified files:
/php-src NEWS
/ZendEngine2 zend_objects_API.c
Log:
Fixed bug #36006 (Problem with $this in __destruct())
http://cvs.php.net/viewcvs.cgi/php-src/NEWS?r1=1.2027.2.357&r2=1.2027.2.358&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.357 php-src/NEWS:1.2027.2.358
--- php-src/NEWS:1.2027.2.357 Mon Jan 16 09:12:22 2006
+++ php-src/NEWS Mon Jan 16 10:12:36 2006
@@ -8,6 +8,7 @@
- Fixed bug #36016 (realpath cache memleaks). (Dmitry, Nuno)
- Fixed bug #36011 (Strict errormsg wrong for call_user_func() and the likes).
(Marcus)
+- Fixed bug #36006 (Problem with $this in __destruct()). (Dmitry)
- Fixed bug #35998 (SplFileInfo::getPathname() returns unix style filenames
in win32). (Marcus)
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_objects_API.c?r1=1.47.2.4&r2=1.47.2.5&diff_format=u
Index: ZendEngine2/zend_objects_API.c
diff -u ZendEngine2/zend_objects_API.c:1.47.2.4 ZendEngine2/zend_objects_API.c:1.47.2.5
--- ZendEngine2/zend_objects_API.c:1.47.2.4 Wed Jan 4 23:53:04 2006
+++ ZendEngine2/zend_objects_API.c Mon Jan 16 10:12:36 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_objects_API.c,v 1.47.2.4 2006/01/04 23:53:04 andi Exp $ */
+/* $Id: zend_objects_API.c,v 1.47.2.5 2006/01/16 10:12:36 dmitry Exp $ */
#include "zend.h"
#include "zend_globals.h"
@@ -52,7 +52,9 @@
if (!objects->object_buckets[i].destructor_called) {
objects->object_buckets[i].destructor_called = 1;
if (obj->dtor && obj->object) {
+ obj->refcount++;
obj->dtor(obj->object, i TSRMLS_CC);
+ obj->refcount--;
}
}
}
http://cvs.php.net/viewcvs.cgi/ZendEngine2/tests/bug36006.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/bug36006.phpt
+++ ZendEngine2/tests/bug36006.phpt