Skip to content

Commit

Permalink
Xdebug hashes want the string length without \0
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Aug 29, 2015
1 parent d55f4dc commit f2ff142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdebug_handler_dbgp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,7 @@ static int xdebug_add_filtered_symboltable_var(zval *symbol TSRMLS_DC, int num_a
}
if (strcmp("GLOBALS", HASH_KEY_VAL(hash_key)) == 0) { return 0; }

xdebug_hash_add(tmp_hash, (char*) HASH_KEY_VAL(hash_key), HASH_KEY_LEN(hash_key), HASH_KEY_VAL(hash_key));
xdebug_hash_add(tmp_hash, (char*) HASH_KEY_VAL(hash_key), HASH_KEY_LEN(hash_key) - 1, HASH_KEY_VAL(hash_key));

return 0;
}
Expand Down

0 comments on commit f2ff142

Please sign in to comment.