From: Andrei Zmievski Date: Sat, 4 Dec 1999 19:46:12 +0000 (+0000) Subject: Cast val to (char *) to avoid compile warning. X-Git-Tag: PRE_RETURN_REF_PATCH~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d885602f472a012bb8a2d9c374e25b8526403df;p=php Cast val to (char *) to avoid compile warning. Forgot ; at the end and need to derefence the ent pointer. --- diff --git a/ext/session/session.c b/ext/session/session.c index f8d056759b..490162820e 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -288,7 +288,7 @@ PS_SERIALIZER_DECODE_FUNC(wddx) MAKE_STD_ZVAL(retval); - _php_wddx_deserialize_ex(val, vallen, retval); + _php_wddx_deserialize_ex((char *)val, vallen, retval); for(zend_hash_internal_pointer_reset(retval->value.ht); zend_hash_get_current_data(retval->value.ht, (void **) &ent) == SUCCESS; @@ -301,7 +301,7 @@ PS_SERIALIZER_DECODE_FUNC(wddx) key = tmp; dofree = 0; case HASH_KEY_IS_STRING: - php_set_session_var(key, strlen(key), ent PSLS_CC) + php_set_session_var(key, strlen(key), *ent PSLS_CC); PS_ADD_VAR(key); if(dofree) efree(key); dofree = 1;