cvs: ZendEngine2(PHP_5_1) / zend_execute_API.c /tests bug34767.phpt php-src NEWS
| From: | Dmitry Stogov | Date: | Thu, 20 Oct 2005 08:14:59 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_1) / zend_execute_API.c /tests bug34767.phpt php-src NEWS | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4262@lists.php.net to get a copy of this message | ||
dmitry Thu Oct 20 04:14:59 2005 EDT
Added files: (Branch: PHP_5_1)
/ZendEngine2/tests bug34767.phpt
Modified files:
/php-src NEWS
/ZendEngine2 zend_execute_API.c
Log:
Fixed bug #34767 (Zend Engine 1 Compatibility not copying objects correctly)
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.2027.2.144&r2=1.2027.2.145&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.144 php-src/NEWS:1.2027.2.145
--- php-src/NEWS:1.2027.2.144 Thu Oct 20 03:23:19 2005
+++ php-src/NEWS Thu Oct 20 04:14:57 2005
@@ -4,6 +4,8 @@
- Fixed bug #34905 (Digest authentication does not work with Apache 1). (Ilia)
- Fixed bug #34902 (mysqli::character_set_name() - undefined method). (Tony)
- Fixed bug #34899 (Fixed sqlite extension compile failure). (Ilia)
+- Fixed bug #34767 (Zend Engine 1 Compatibility not copying objects correctly).
+ (Dmitry)
- Fixed bug #33829 (mime_content_type() returns text/plain for gzip and bzip
files). (Derick)
- Fixed bug #34623 (Crash in pdo_mysql on longtext fields). (Ilia)
http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.331.2.2&r2=1.331.2.3&ty=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.331.2.2 ZendEngine2/zend_execute_API.c:1.331.2.3
--- ZendEngine2/zend_execute_API.c:1.331.2.2 Fri Sep 9 02:48:48 2005
+++ ZendEngine2/zend_execute_API.c Thu Oct 20 04:14:58 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute_API.c,v 1.331.2.2 2005/09/09 06:48:48 dmitry Exp $ */
+/* $Id: zend_execute_API.c,v 1.331.2.3 2005/10/20 08:14:58 dmitry Exp $ */
#include <stdio.h>
#include <signal.h>
@@ -386,6 +386,13 @@
zval_dtor(*zval_ptr);
safe_free_zval_ptr_rel(*zval_ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC);
} else if ((*zval_ptr)->refcount == 1) {
+ if ((*zval_ptr)->type == IS_OBJECT) {
+ TSRMLS_FETCH();
+
+ if (EG(ze1_compatibility_mode)) {
+ return;
+ }
+ }
(*zval_ptr)->is_ref = 0;
}
}
http://cvs.php.net/co.php/ZendEngine2/tests/bug34767.phpt?r=1.1&p=1
Index: ZendEngine2/tests/bug34767.phpt
+++ ZendEngine2/tests/bug34767.phpt