From: Andrei Zmievski Date: Tue, 4 Apr 2000 16:41:13 +0000 (+0000) Subject: Additional check for IS_OBJECT. X-Git-Tag: php-4.0RC2~491 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebce1ad78728fdb57d6dabc88b3bd1b3de309098;p=php Additional check for IS_OBJECT. --- 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) {