Skip to content

Commit

Permalink
Update xdebug_var.c
Browse files Browse the repository at this point in the history
2 Changes to make it work on X64. Maybe the change on line 502, 'strtoul' to 'strtoull' might need some special handling for 32bit.
  • Loading branch information
techkey authored and derickr committed Dec 12, 2015
1 parent 99bf479 commit b228448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xdebug_var.c
Expand Up @@ -434,7 +434,7 @@ static zval* fetch_zval_from_symbol_table(zval *parent, char* name, unsigned int
#endif
int i = 0;
#if PHP_VERSION_ID >= 70000
ulong hash_value = zend_inline_hash_func(element, element_length);
zend_ulong hash_value = zend_inline_hash_func(element, element_length);
zend_op_array *opa = &XG(active_execute_data)->func->op_array;
#else
ulong hash_value = zend_inline_hash_func(element, element_length + 1);
Expand Down Expand Up @@ -499,7 +499,7 @@ static zval* fetch_zval_from_symbol_table(zval *parent, char* name, unsigned int
case XF_ST_ARRAY_INDEX_NUM:
element = prepare_search_key(name, &name_length, "", 0);
#if PHP_VERSION_ID >= 70000
if (ht && ((retval_p = zend_hash_index_find(ht, strtoul(element, NULL, 10))) != NULL)) {
if (ht && ((retval_p = zend_hash_index_find(ht, strtoull(element, NULL, 10))) != NULL)) {
#else
if (ht && zend_hash_index_find(ht, strtoul(element, NULL, 10), (void **) &retval_pp) == SUCCESS) {
retval_p = *retval_pp;
Expand Down

0 comments on commit b228448

Please sign in to comment.