diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-06-05 20:58:21 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-06-05 20:58:21 +0400 |
commit | 1593d942e7991c25d0fa08caefb9dce2dd127ef7 (patch) | |
tree | aee1857ec70fb52b815e01059392920f489ade1e /ext/standard/array.c | |
parent | 717839735f92489227144fc6ae9ef1b4f637816a (diff) | |
download | php-git-1593d942e7991c25d0fa08caefb9dce2dd127ef7.tar.gz |
Fixed compilation warnings
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r-- | ext/standard/array.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c index 30cea91434..5446bb5f5a 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -1287,7 +1287,7 @@ PHP_FUNCTION(extract) { zval *var_array, *prefix = NULL; long extract_type = EXTR_OVERWRITE; - zval *entry, data; + zval *entry; zend_string *var_name; ulong num_key; int var_exists, count = 0; @@ -1594,8 +1594,8 @@ PHP_FUNCTION(range) goto long_str; } - low = (unsigned char *)Z_STRVAL_P(zlow)[0]; - high = (unsigned char *)Z_STRVAL_P(zhigh)[0]; + low = (unsigned char)Z_STRVAL_P(zlow)[0]; + high = (unsigned char)Z_STRVAL_P(zhigh)[0]; if (low > high) { /* Negative Steps */ if (lstep <= 0) { @@ -1606,7 +1606,7 @@ PHP_FUNCTION(range) if (CG(one_char_string)[low]) { ZVAL_INT_STR(&tmp, CG(one_char_string)[low]); } else { - ZVAL_STRINGL(&tmp, &low, 1); + ZVAL_STRINGL(&tmp, (char*)&low, 1); } zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), &tmp); if (((signed int)low - lstep) < 0) { @@ -1622,7 +1622,7 @@ PHP_FUNCTION(range) if (CG(one_char_string)[low]) { ZVAL_INT_STR(&tmp, CG(one_char_string)[low]); } else { - ZVAL_STRINGL(&tmp, &low, 1); + ZVAL_STRINGL(&tmp, (char*)&low, 1); } zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), &tmp); if (((signed int)low + lstep) > 255) { |