cvs: php4 /ext/standard var.c

From: Date: Thu, 14 Mar 2002 14:05:18 +0000
Subject: cvs: php4 /ext/standard var.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-10114@lists.php.net to get a copy of this message
wez Thu Mar 14 09:05:18 2002 EDT Modified files: /php4/ext/standard var.c Log: fix buglet Index: php4/ext/standard/var.c diff -u php4/ext/standard/var.c:1.132 php4/ext/standard/var.c:1.133 --- php4/ext/standard/var.c:1.132 Thu Mar 14 04:36:13 2002 +++ php4/ext/standard/var.c Thu Mar 14 09:05:13 2002 @@ -59,7 +59,7 @@ void php_var_dump(zval **struc, int level TSRMLS_DC) { - HashTable *myht; + HashTable *myht = NULL; zend_object *object = NULL; if (level > 1) { @@ -103,7 +103,6 @@ myht = Z_OBJPROP_PP(struc); php_printf("%sobject(%s)(%d) {\n", COMMON, Z_OBJCE_PP(struc)->name, zend_hash_num_elements(myht)); head_done: - myht = Z_ARRVAL_PP(struc); zend_hash_apply_with_arguments(myht, (apply_func_args_t) php_array_element_dump, 1, level); if (Z_TYPE_PP(struc) == IS_ARRAY) { (*struc)->value.ht->nApplyCount--; @@ -176,7 +175,7 @@ void php_debug_zval_dump(zval **struc, int level TSRMLS_DC) { - HashTable *myht; + HashTable *myht = NULL; if (level > 1) { php_printf("%*c", level - 1, ' ');

« previous php.cvs (#10114) next »