]> granicus.if.org Git - php/commitdiff
Cast val to (char *) to avoid compile warning.
authorAndrei Zmievski <andrei@php.net>
Sat, 4 Dec 1999 19:46:12 +0000 (19:46 +0000)
committerAndrei Zmievski <andrei@php.net>
Sat, 4 Dec 1999 19:46:12 +0000 (19:46 +0000)
Forgot ; at the end and need to derefence the ent pointer.

ext/session/session.c

index f8d056759b4be33330dcd2cee7eb4d42070b676f..490162820eaa319ab78001042dc7a87f23cb15a0 100644 (file)
@@ -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;