Skip to content

Commit

Permalink
properly decode string with null-byte, see #7
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Sep 26, 2013
1 parent 0eab694 commit c9200c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion json.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ static void json_object_to_zval(json_object *new_obj, zval *return_value, int o
break;

case json_type_string:
RETVAL_STRING(json_object_get_string(new_obj), 1);
RETVAL_STRINGL(json_object_get_string(new_obj), json_object_get_string_len(new_obj), 1);
break;

case json_type_int:
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This is a drop-in alternative to PHP standard json extension.
</stability>
<license>PHP 3.01</license>
<notes>
-
- properly decode string with null-byte
</notes>
<contents>
<dir name="/">
Expand Down

0 comments on commit c9200c8

Please sign in to comment.