Skip to content
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

Request #72073 Expose encoder_depth to jsonSerialize as parameter #1884

Closed
wants to merge 1 commit into from

Conversation

bestis
Copy link

@bestis bestis commented Apr 22, 2016

https://bugs.php.net/bug.php?id=72073

We have objects that do dynamic loading and there might be recursions. We could use recursion depth to decide when we want to do dynamic loading and when not.

Now there doesn't seem to be any way to know how deep is the json_encode process going. If we try to use some level in jsonSerialize it just calls one of those, no recursion there.

This could be easily archieved by exposing the internal encoder_depth to jsonSerialize.

@krakjoe
Copy link
Member

krakjoe commented Jan 3, 2017

Changing an internal interfaces method signature will require more consensus than can be gathered on this issue tracker.

Please can you start an internals discussion regarding this change, it may lead to an RFC.

@krakjoe
Copy link
Member

krakjoe commented Jan 27, 2017

Discussion: https://externals.io/thread/617

The discussion lead to a negative consensus, so I'm closing this PR.

The only thing left for you to do is to create a new patch that deals with the criticisms raised during discussion, and probably create an RFC to merge that patch.

Certainly, we can't merge this.

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

Successfully merging this pull request may close these issues.

3 participants