Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
Fix: copy string in __debugInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
bzick committed Nov 11, 2015
1 parent 6dddc62 commit 44b58d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ION/Stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ CLASS_METHOD(ION_Stream, __debugInfo) {
if(stream->read) {
array_init(&read);
if(stream->token) {
add_assoc_str(&read, "token", stream->token->token);
add_assoc_str(&read, "token", zend_string_copy(stream->token->token));
add_assoc_long(&read, "max_bytes", stream->token->length);
add_assoc_long(&read, "scanned_bytes", stream->token->offset);
if(stream->token->flags & ION_STREAM_MODE_TRIM_TOKEN) {
Expand Down

0 comments on commit 44b58d6

Please sign in to comment.