diff options
author | Andrei Zmievski <andrei@php.net> | 2000-04-04 16:41:13 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2000-04-04 16:41:13 +0000 |
commit | ebce1ad78728fdb57d6dabc88b3bd1b3de309098 (patch) | |
tree | 0cdbc401e3aa5a9cfb5b3ada933a51331d53fc65 /ext/wddx | |
parent | db160e8164b22edb7b9d8a6abc90ed0a3570c913 (diff) | |
download | php-git-ebce1ad78728fdb57d6dabc88b3bd1b3de309098.tar.gz |
Additional check for IS_OBJECT.
Diffstat (limited to 'ext/wddx')
-rw-r--r-- | ext/wddx/wddx.c | 2 |
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) { |