cvs: php4 /ext/standard var.c

From: Date: Mon, 29 Apr 2002 15:44:30 +0000
Subject: cvs: php4 /ext/standard var.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11530@lists.php.net to get a copy of this message
stas Mon Apr 29 11:44:30 2002 EDT Modified files: /php4/ext/standard var.c Log: Yet another serialization fix - for incomplete class Index: php4/ext/standard/var.c diff -u php4/ext/standard/var.c:1.140 php4/ext/standard/var.c:1.141 --- php4/ext/standard/var.c:1.140 Sun Apr 28 12:56:33 2002 +++ php4/ext/standard/var.c Mon Apr 29 11:44:30 2002 @@ -432,10 +432,12 @@ static void php_var_serialize_class(smart_str *buf, zval **struc, zval *retval_ptr, HashTable *var_hash TSRMLS_DC) { - int count = zend_hash_num_elements(HASH_OF(retval_ptr)); + int count; 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 */ + count = zend_hash_num_elements(HASH_OF(retval_ptr)); smart_str_append_long(buf, count); smart_str_appendl(buf, ":{", 2);

« previous php.cvs (#11530) next »