From adc98200d62a67dfa57ccb01d22b84945450429c Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Wed, 11 Jul 2001 11:45:05 +0000 Subject: [PATCH] More correct pseudo-fix # This is not really a fix. This thing is still broken. I will think on # how to really fix it. Any suggestion is *welcome*. --- ext/standard/var.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/standard/var.c b/ext/standard/var.c index 7611fb7b510..05b12e6aa10 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -324,7 +324,7 @@ PHPAPI void php_var_serialize(zval *buf, zval **struc, HashTable *var_hash) if ((i = zend_hash_get_current_key_ex(myht, &key, NULL, &index, 0, &pos)) == HASH_KEY_NON_EXISTANT) { break; } - if (zend_hash_get_current_data_ex(myht, (void **) (&data), &pos) != SUCCESS || !data /* || ((*data) == (*struc)) */) { + if (zend_hash_get_current_data_ex(myht, (void **) (&data), &pos) != SUCCESS || !data || data == struc) { continue; } @@ -342,7 +342,6 @@ PHPAPI void php_var_serialize(zval *buf, zval **struc, HashTable *var_hash) FREE_ZVAL(d); break; } - if (data == struc) return; php_var_serialize(buf, data, var_hash); } }