summaryrefslogtreecommitdiff
path: root/src/iterator.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-04 17:33:12 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-04 17:33:12 +0200
commit51f1d74a2279276ce762056856767b7dc140dd5b (patch)
treed8a2421ad165438814b64e2c219f001e4c20cf12 /src/iterator.cpp
parent2eb4e891d9b2d3c71a2b1d7367d85b22f4ecc9cf (diff)
fixes to make the library compile for php 5.6 environments (problem discovered in issue #59)
Diffstat (limited to 'src/iterator.cpp')
-rw-r--r--src/iterator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iterator.cpp b/src/iterator.cpp
index 6242440..0362fb1 100644
--- a/src/iterator.cpp
+++ b/src/iterator.cpp
@@ -83,10 +83,10 @@ void Iterator::key(zend_object_iterator *iter, zval *key TSRMLS_DC)
Value retval(iterator->key());
// detach the underlying zval
- zval *zval = retval.detach();
+ zval *val = retval.detach();
// copy it to the key
- ZVAL_ZVAL(key, zval, 1, 1);
+ ZVAL_ZVAL(key, val, 1, 1);
}
/**