summaryrefslogtreecommitdiff
path: root/ext/wddx
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2000-04-04 16:41:13 +0000
committerAndrei Zmievski <andrei@php.net>2000-04-04 16:41:13 +0000
commitebce1ad78728fdb57d6dabc88b3bd1b3de309098 (patch)
tree0cdbc401e3aa5a9cfb5b3ada933a51331d53fc65 /ext/wddx
parentdb160e8164b22edb7b9d8a6abc90ed0a3570c913 (diff)
downloadphp-git-ebce1ad78728fdb57d6dabc88b3bd1b3de309098.tar.gz
Additional check for IS_OBJECT.
Diffstat (limited to 'ext/wddx')
-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) {