summaryrefslogtreecommitdiff
path: root/php/src/IcePHP/Profile.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2008-05-28 08:59:58 -0700
committerBenoit Foucher <benoit@zeroc.com>2008-06-06 12:25:27 +0200
commitbd9e134c47cfee5413810e59fa40efa1e340f985 (patch)
tree65c931660e1d82c3e67ecf8677bc57a0db9b8e4e /php/src/IcePHP/Profile.cpp
parentfixing py/config/Make.rules in branch (diff)
downloadice-bd9e134c47cfee5413810e59fa40efa1e340f985.tar.bz2
ice-bd9e134c47cfee5413810e59fa40efa1e340f985.tar.xz
ice-bd9e134c47cfee5413810e59fa40efa1e340f985.zip
bug 3141 - fixing GCC warnings in IcePHP
Diffstat (limited to 'php/src/IcePHP/Profile.cpp')
-rw-r--r--php/src/IcePHP/Profile.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/php/src/IcePHP/Profile.cpp b/php/src/IcePHP/Profile.cpp
index a240bd63a5e..d0a4d039075 100644
--- a/php/src/IcePHP/Profile.cpp
+++ b/php/src/IcePHP/Profile.cpp
@@ -893,11 +893,12 @@ ZEND_FUNCTION(Ice_loadProfileWithArgs)
//
Ice::StringSeq args;
HashTable* arr = Z_ARRVAL_P(zv);
+ void* data;
HashPosition pos;
- zval** val;
zend_hash_internal_pointer_reset_ex(arr, &pos);
- while(zend_hash_get_current_data_ex(arr, reinterpret_cast<void**>(&val), &pos) != FAILURE)
+ while(zend_hash_get_current_data_ex(arr, &data, &pos) != FAILURE)
{
+ zval** val = reinterpret_cast<zval**>(data);
if(Z_TYPE_PP(val) != IS_STRING)
{
php_error_docref(0 TSRMLS_CC, E_ERROR, "argument array must contain strings");