cvs: php-src /ext/standard array.c
| From: | Andrey Hristov | Date: | Wed, 04 Jan 2006 22:42:17 +0000 |
| Subject: | cvs: php-src /ext/standard array.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36399@lists.php.net to get a copy of this message | ||
andrey Wed Jan 4 22:42:17 2006 UTC
Modified files:
/php-src/ext/standard array.c
Log:
cast and fix a warning
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/array.c?r1=1.336&r2=1.337&diff_format=u
Index: php-src/ext/standard/array.c
diff -u php-src/ext/standard/array.c:1.336 php-src/ext/standard/array.c:1.337
--- php-src/ext/standard/array.c:1.336 Sun Jan 1 13:09:54 2006
+++ php-src/ext/standard/array.c Wed Jan 4 22:42:17 2006
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: array.c,v 1.336 2006/01/01 13:09:54 sniper Exp $ */
+/* $Id: array.c,v 1.337 2006/01/04 22:42:17 andrey Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -1415,7 +1415,7 @@
ZVAL_NULL(&final_name);
- key_type = zend_hash_get_current_key_ex(Z_ARRVAL_PP(var_array), &var_name, &var_name_len,
&num_key, 0, &pos);
+ key_type = zend_hash_get_current_key_ex(Z_ARRVAL_PP(var_array), (char **)&var_name,
&var_name_len, &num_key, 0, &pos);
var_exists = 0;
if (key_type == HASH_KEY_IS_STRING ||