Skip to content

Introduce json encoder to fix globals related issues #2173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

bukka
Copy link
Member

@bukka bukka commented Oct 23, 2016

It fixes bugs #66025 and #73254 by replacing globals with a passed structure holding depth and error code. In addition it fixes #72069 in a more generic way.

The API for php_json_encoder struct is not exposed on purpose as I have got some ideas for possible changes which might happen in the future. There is no need to expose it as php_json_encode still works in the same way with fixed behaviour.

I plan to merge it to 7.1 branch as it doesn't introduce any ABI or user visible changes (just fixes bugs).

It fixes bugs #66025 and #73254 by replacing globals with
a passed structure holding depth and error code. In addition
it fixes #72069 in a more generic way.
@KalleZ
Copy link
Member

KalleZ commented Oct 23, 2016

cc @krakjoe @dshafik

@krakjoe
Copy link
Member

krakjoe commented Oct 23, 2016

LGTM

@bukka
Copy link
Member Author

bukka commented Oct 30, 2016

Merged via c34de0b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants