]> granicus.if.org Git - php/commitdiff
Add comments for the fix
authorStanislav Malyshev <stas@php.net>
Mon, 29 Apr 2002 16:02:41 +0000 (16:02 +0000)
committerStanislav Malyshev <stas@php.net>
Mon, 29 Apr 2002 16:02:41 +0000 (16:02 +0000)
ext/standard/var.c

index a1cb1a201c999697587f477681ba32b06ba6090a..10aee69b140d4d1b69136211b2427c782ffef75c 100644 (file)
@@ -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);