-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
Allow $data['request'] to be 5 levels deep #554
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use 'data' content as in a real application (in CakePHP this is real data as one would receive in a request).
stayallive
reviewed
Feb 23, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jean85
approved these changes
Feb 26, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
I agree with @stayallive, this should work well...
This snowed under a but, thanks again for your contribution! |
Jean85
added a commit
that referenced
this pull request
May 4, 2018
Jean85
added a commit
that referenced
this pull request
May 9, 2018
* Fix gzipCompress function name PHP doesn't have `gzipCompress` function, use `gzcompress` instead http://php.net/manual/en/function.gzcompress.php (cherry picked from commit d391712) * Fix notice during tests * Fix Client PHPDoc tag (port of #548 to 2.x) * Added syntax highlighting to README.md (#551) (cherry picked from commit 4dd0a3e) * Add use statement for HttpException class (cherry picked from commit 389c3ac, port of #556 to 2.x) * Change badge with badge poser. (cherry picked from commit 47ce095, port of #557 to 2.x) * Update docs config (cherry picked from commit f9c90cf) * Add test to handle non default port in host (port of #572 to 2.x) * Update changelog with 1.8.4 info (port of #573 to 2.x) * Allow serialization 5 levels deep (port of #554 to 2.x) * Make Serializer string limit customizable (port of #559 to 2.x) * Avoid looping when exception throws exception (port of #587 to 2.x) * Fix monolog handler not accepting Throwable (port of #586 to 2.x) * Fix serializer to account for non-UTF-8 chars (port of #553 to 2.x) * Add 1.9.0 changelog entries (cherry picked from commit 01171cf) * Add timeout and excluded_options config docs (cherry picked from commit 6860a3e) * Add back unrelease heading to changelog (cherry picked from commit 3f52e6f) * Fix CS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A normal POST request in a PHP application can be up to 3 levels deep. In
$data['request']
there are 2 additional arrays wrapped around it, so that the serializer removes most of the data. (I added a screenshot to show how that looks in the UI).This pull request raises the
max_depth
for the request data to 5.I also adjusted the test to use more realistic data so that it's better understandable.
I added another test so that the truncation is still covered by a test.