cvs: php4 /ext/standard var.c

From: Date: Mon, 29 Apr 2002 16:02:41 +0000
Subject: cvs: php4 /ext/standard var.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11535@lists.php.net to get a copy of this message
stas Mon Apr 29 12:02:41 2002 EDT Modified files: /php4/ext/standard var.c Log: Add comments for the fix Index: php4/ext/standard/var.c diff -u php4/ext/standard/var.c:1.142 php4/ext/standard/var.c:1.143 --- php4/ext/standard/var.c:1.142 Mon Apr 29 12:02:10 2002 +++ php4/ext/standard/var.c Mon Apr 29 12:02:41 2002 @@ -567,6 +567,8 @@ } 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);

« previous php.cvs (#11535) next »