From: Stanislav Malyshev Date: Mon, 29 Apr 2002 16:02:41 +0000 (+0000) Subject: Add comments for the fix X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~359 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11df2122dfe9177d521eb490b37e0116aa6c7470;p=php Add comments for the fix --- diff --git a/ext/standard/var.c b/ext/standard/var.c index a1cb1a201c..10aee69b14 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -567,6 +567,8 @@ static void php_var_serialize_intern(smart_str *buf, zval **struc, HashTable *va } else { php_var_serialize_class_name(buf, struc TSRMLS_CC); } + /* count after serializing name, since php_var_serialize_class_name + changes the count if the variable is incomplete class */ i = zend_hash_num_elements(myht); smart_str_append_long(buf, i); smart_str_appendl(buf, ":{", 2);