com php-src: Fixed compilation warnings: ext/standard/array.c

From: Date: Thu, 05 Jun 2014 16:58:21 +0000
Subject: com php-src: Fixed compilation warnings: ext/standard/array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78710@lists.php.net to get a copy of this message
Commit: 1593d942e7991c25d0fa08caefb9dce2dd127ef7 Author: Dmitry Stogov <dmitry@zend.com> Thu, 5 Jun 2014 20:58:21 +0400 Parents: 717839735f92489227144fc6ae9ef1b4f637816a Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1593d942e7991c25d0fa08caefb9dce2dd127ef7 Log: Fixed compilation warnings Changed paths: M ext/standard/array.c Diff: diff --git a/ext/standard/array.c b/ext/standard/array.c index 30cea91..5446bb5 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) {

« previous php.cvs (#78710) next »