summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/wddx/wddx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c
index eb3e125a44..3f7af0370b 100644
--- a/ext/wddx/wddx.c
+++ b/ext/wddx/wddx.c
@@ -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) {