--- embedaddon/php/ext/wddx/wddx.c 2012/02/21 23:48:05 1.1.1.1 +++ embedaddon/php/ext/wddx/wddx.c 2012/05/29 12:34:45 1.1.1.2 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: wddx.c,v 1.1.1.1 2012/02/21 23:48:05 misho Exp $ */ +/* $Id: wddx.c,v 1.1.1.2 2012/05/29 12:34:45 misho Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -457,7 +457,7 @@ static void php_wddx_serialize_object(wddx_packet *pac /* OBJECTS_FIXME */ zval **ent, *fname, **varname; zval *retval = NULL; - char *key; + const char *key; ulong idx; char tmp_buf[WDDX_BUF_LEN]; HashTable *objhash, *sleephash; @@ -529,7 +529,7 @@ static void php_wddx_serialize_object(wddx_packet *pac } if (zend_hash_get_current_key_ex(objhash, &key, &key_len, &idx, 0, NULL) == HASH_KEY_IS_STRING) { - char *class_name, *prop_name; + const char *class_name, *prop_name; zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name); php_wddx_serialize_var(packet, *ent, prop_name, strlen(prop_name)+1 TSRMLS_CC);