- Timestamp:
- 10/24/2007 16:52:14 (13 months ago)
- Files:
-
- 1 modified
-
trunk/ext/php/phpext.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ext/php/phpext.c
r290 r291 153 153 154 154 if (i > 0) { 155 char *key ;155 char *key = NULL; 156 156 uint key_len; 157 157 HashPosition pos; … … 292 292 ZVAL_LONG(o, intVal); 293 293 } else if (strcmp(n->type_id, "int#base60") == 0) { 294 char *ptr , *end;294 char *ptr = NULL, *end = NULL; 295 295 long sixty = 1; 296 296 long total = 0; … … 334 334 ZVAL_DOUBLE(o, f); 335 335 } else if (strcmp(n->type_id, "float#base60") == 0) { 336 char *ptr , *end;336 char *ptr = NULL, *end = NULL; 337 337 long multiplier = 1; 338 338 double total = 0; … … 627 627 { 628 628 size_t res_size; 629 char *res ;629 char *res = NULL; 630 630 631 631 res_size = snprintf(res, 0, "%ld", Z_LVAL_P(data)); /* getting size ("0" doesn't let output) */ … … 641 641 { 642 642 size_t res_size; 643 char *res ;643 char *res = NULL; 644 644 645 645 res_size = snprintf(res, 0, "%f", Z_DVAL_P(data)); /* getting size ("0" doesn't let output) */ … … 703 703 for (zend_hash_internal_pointer_reset(tbl); zend_hash_has_more_elements(tbl) == SUCCESS; zend_hash_move_forward(tbl)) { 704 704 zval **ppzval = NULL, kzval; 705 char *key ;705 char *key = NULL; 706 706 uint key_len; 707 707 ulong idx; … … 744 744 case IS_OBJECT: 745 745 { 746 char *name ;746 char *name = NULL; 747 747 zend_uint name_len; 748 748 zend_class_entry *ce;