Skip to content

Commit 0d88560

Browse files
author
Andrei Zmievski
committed
Cast val to (char *) to avoid compile warning. Forgot ; at the end and need to derefence the ent pointer.
1 parent 5b983c9 commit 0d88560

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/session/session.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ PS_SERIALIZER_DECODE_FUNC(wddx)
288288

289289
MAKE_STD_ZVAL(retval);
290290

291-
_php_wddx_deserialize_ex(val, vallen, retval);
291+
_php_wddx_deserialize_ex((char *)val, vallen, retval);
292292

293293
for(zend_hash_internal_pointer_reset(retval->value.ht);
294294
zend_hash_get_current_data(retval->value.ht, (void **) &ent) == SUCCESS;
@@ -301,7 +301,7 @@ PS_SERIALIZER_DECODE_FUNC(wddx)
301301
key = tmp;
302302
dofree = 0;
303303
case HASH_KEY_IS_STRING:
304-
php_set_session_var(key, strlen(key), ent PSLS_CC)
304+
php_set_session_var(key, strlen(key), *ent PSLS_CC);
305305
PS_ADD_VAR(key);
306306
if(dofree) efree(key);
307307
dofree = 1;

0 commit comments

Comments
 (0)