]> granicus.if.org Git - php/commitdiff
Additional check for IS_OBJECT.
authorAndrei Zmievski <andrei@php.net>
Tue, 4 Apr 2000 16:41:13 +0000 (16:41 +0000)
committerAndrei Zmievski <andrei@php.net>
Tue, 4 Apr 2000 16:41:13 +0000 (16:41 +0000)
ext/wddx/wddx.c

index eb3e125a44e29e968151d8d726143f7ff5b36196..3f7af0370b729803ec2f999226ed47d0c88257de 100644 (file)
@@ -400,7 +400,7 @@ static void php_wddx_serialize_hash(wddx_packet *packet, zval *var)
        }
 
        while(zend_hash_get_current_data(target_hash, (void**)&ent) == SUCCESS) {
-               if (hash_type == HASH_KEY_IS_STRING) {
+               if (var->type == IS_OBJECT || hash_type == HASH_KEY_IS_STRING) {
                        ent_type = zend_hash_get_current_key(target_hash, &key, &idx);
 
                        if (ent_type == HASH_KEY_IS_STRING) {