cvs: ZendEngine2 / zend_API.c zend_API.h zend_object_handlers.c
| From: | Andrei Zmievski | Date: | Fri, 19 Aug 2005 22:33:42 +0000 |
| Subject: | cvs: ZendEngine2 / zend_API.c zend_API.h zend_object_handlers.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4054@lists.php.net to get a copy of this message | ||
andrei Fri Aug 19 18:33:42 2005 EDT
Modified files:
/ZendEngine2 zend_API.c zend_API.h zend_object_handlers.c
Log:
http://cvs.php.net/diff.php/ZendEngine2/zend_API.c?r1=1.309&r2=1.310&ty=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.309 ZendEngine2/zend_API.c:1.310
--- ZendEngine2/zend_API.c:1.309 Fri Aug 19 06:54:20 2005
+++ ZendEngine2/zend_API.c Fri Aug 19 18:33:39 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.c,v 1.309 2005/08/19 10:54:20 dmitry Exp $ */
+/* $Id: zend_API.c,v 1.310 2005/08/19 22:33:39 andrei Exp $ */
#include "zend.h"
#include "zend_execute.h"
@@ -2949,6 +2949,8 @@
if (best_type == IS_STRING) {
best_type = IS_UNICODE;
}
+ } else if (type == IS_STRING) {
+ best_type = IS_STRING;
}
}
va_end(ap);
http://cvs.php.net/diff.php/ZendEngine2/zend_API.h?r1=1.215&r2=1.216&ty=u
Index: ZendEngine2/zend_API.h
diff -u ZendEngine2/zend_API.h:1.215 ZendEngine2/zend_API.h:1.216
--- ZendEngine2/zend_API.h:1.215 Fri Aug 19 06:54:21 2005
+++ ZendEngine2/zend_API.h Fri Aug 19 18:33:39 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.h,v 1.215 2005/08/19 10:54:21 dmitry Exp $ */
+/* $Id: zend_API.h,v 1.216 2005/08/19 22:33:39 andrei Exp $ */
#ifndef ZEND_API_H
#define ZEND_API_H
@@ -671,7 +671,7 @@
#define ZVAL_TEXT(z, t, duplicate) \
do { \
if (UG(unicode)) { \
- ZVAL_UNICODE(z, t, duplicate); \
+ ZVAL_UNICODE(z, (UChar*)t, duplicate); \
} else { \
ZVAL_STRING(z, t, duplicate); \
} \
http://cvs.php.net/diff.php/ZendEngine2/zend_object_handlers.c?r1=1.143&r2=1.144&ty=u
Index: ZendEngine2/zend_object_handlers.c
diff -u ZendEngine2/zend_object_handlers.c:1.143 ZendEngine2/zend_object_handlers.c:1.144
--- ZendEngine2/zend_object_handlers.c:1.143 Fri Aug 19 09:20:14 2005
+++ ZendEngine2/zend_object_handlers.c Fri Aug 19 18:33:39 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_object_handlers.c,v 1.143 2005/08/19 13:20:14 dmitry Exp $ */
+/* $Id: zend_object_handlers.c,v 1.144 2005/08/19 22:33:39 andrei Exp $ */
#include "zend.h"
#include "zend_globals.h"
@@ -265,7 +265,7 @@
if (!(property_info->flags & ZEND_ACC_PRIVATE)) {
/* we we're looking for a private prop but found a non private one of the same name */
return FAILURE;
- } else if (!UG(unicode) && strcmp(prop_info_name+1, property_info->name+1)) {
+ } else if (!UG(unicode) && strcmp((char*)prop_info_name+1, property_info->name+1)) {
/* we we're looking for a private prop but found a private one of the same name but another
class */
return FAILURE;
} else if (UG(unicode) && u_strcmp(((UChar*)prop_info_name)+1,
((UChar*)property_info->name)+1)) {