Skip to content

Commit

Permalink
Merge 62256e2 into 65b0eb0
Browse files Browse the repository at this point in the history
  • Loading branch information
adambaratz committed Apr 19, 2016
2 parents 65b0eb0 + 62256e2 commit da950f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mustache_data.cpp
Expand Up @@ -265,7 +265,7 @@ static zend_always_inline void mustache_data_from_array_zval(mustache::Data * no
}

data_count = zend_hash_num_elements(data_hash);
ZEND_HASH_FOREACH_KEY_VAL(data_hash, key_nindex, key, data_entry) {
ZEND_HASH_FOREACH_KEY_VAL_IND(data_hash, key_nindex, key, data_entry) {
if( !key ) {
if( node->type == mustache::Data::TypeNone ) {
node->init(mustache::Data::TypeArray, data_count);
Expand Down Expand Up @@ -412,7 +412,7 @@ static zend_always_inline void mustache_data_from_object_properties_zval(mustach
return;
}

ZEND_HASH_FOREACH_KEY_VAL(data_hash, key_nindex, key, data_entry) {
ZEND_HASH_FOREACH_KEY_VAL_IND(data_hash, key_nindex, key, data_entry) {
if( key && ZSTR_LEN(key) && ZSTR_VAL(key)[0] ) { // skip private/protected
prop_name = ZSTR_VAL(key);

Expand Down Expand Up @@ -511,7 +511,7 @@ static zend_always_inline void mustache_data_from_object_functions_zval(mustache
return;
}

ZEND_HASH_FOREACH_KEY_VAL(data_hash, key_nindex, key, data_entry) {
ZEND_HASH_FOREACH_KEY_VAL_IND(data_hash, key_nindex, key, data_entry) {
function_entry = (zend_function *) Z_PTR_P(data_entry);
if( is_valid_function(function_entry) ) {
node->type = mustache::Data::TypeMap;
Expand Down

0 comments on commit da950f1

Please sign in to comment.