-
-
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
[2.0] Merge up to 1.9 #592
Conversation
PHP doesn't have `gzipCompress` function, use `gzcompress` instead http://php.net/manual/en/function.gzcompress.php (cherry picked from commit d391712)
(cherry picked from commit f9c90cf)
It was removed because it's a deprecated field |
According to the security issues that could arise by using the |
$this->markTestSkipped('mbstring extension is not enabled.'); | ||
} | ||
|
||
$testString = 'Прекратите надеяться, что ваши пользователи будут сообщать об ошибках'; |
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.
This is so funny! It's the Google-translated version of Stop hoping that your users will report bugs
in russian
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.
I couldn't just add some random text, needs to make a little bit sense at least 😉
This is no longer WIP, I will handle the PHPT tests separately, please review! |
I know that this argument has already been discussed many times and widely, but I strongly disagree with gathering the POST data and deserialize it if it's JSON. Now that we have a well organized way to collect all information we and users need through middlewares everyone can easily add whatever they want to the event data, and the SDK specs also says:
This is the main reason I did not collect POST data by default in the |
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.
It's a large PR so I skimmed over it but looks like it's all the changes from 1.9.0
and in the right places, so 👍
Oh well, then I think we should create a separated middleware to do that!
What's the correct method to do it? |
I think you should use the |
This reverts commit e33e200
Ok I've reverted the commit about #546, I will handle it in a separate PR where I will create a separated middleware to handle POST body, with JSON handling too. |
#587 should not apply to |
Yep, but I've preferred to port the regression test anyway, so we will never have issues like that one in the future, for whatever reason. |
I can't see where the |
The |
What I meant is that I don't see anything in the test that tries to set the |
It's possible that is already covered by your PR, yes. |
This is a continuation of the work of #526, continuosly porting all the new stuff from the master branch into the 2.0. This is the list of merged PRs on master that I've ported here (by merge order on master):
application/json
input handlingCleanup the 'site' value if it's empty #555: Cleanup the 'site' value if it's emptysite
is a deprecated field, no longer presentRuntime information #564: add runtime infoalready covered by [2.0] Adding the PHP version #562Fix x-forwarded-proto detection #578: Fix x-forwarded-proto detectionwill be handled with [2.0] Drop thetrust_x_forwarded_proto
option #594Add excluded_exceptions that is compatible with 2.0 #583:already handled in [2.0] Refactor how the events are captured and stored #487exclude_exceptions
with child typesFixed undefined variable #588: fix for undefined variablenot applicable, CurlHandler no longer presentPrepare master for next release cycle #591: prepare 1.10.x releasenot applicableI will handle those PHPT regression tests separately: