if (best_type == IS_STRING) {
best_type = IS_UNICODE;
}
+ } else if (type == IS_STRING) {
+ best_type = IS_STRING;
}
}
va_end(ap);
#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); \
} \
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)) {