Skip to content

Commit b92335f

Browse files
committed
Upgrade Sentry library to 1.9.0
1 parent 2ba1fc5 commit b92335f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+343
-5908
lines changed

lib/sentry/sentry/.scrutinizer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tools:
55
php_code_coverage: true
66
external_code_coverage:
77
timeout: 2400 # There can be another pull request in progress
8-
runs: 6 # PHP 5.3 + PHP 5.4 + PHP 5.5 + PHP 5.6 + PHP 7.0 + PHP 7.1
8+
runs: 7 # PHP 5.3 + PHP 5.4 + PHP 5.5 + PHP 5.6 + PHP 7.0 + PHP 7.1 + PHP 7.2
99

1010
build:
1111
environment:

lib/sentry/sentry/.travis.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ language: php
22
sudo: false
33

44
php:
5-
- 5.3
65
- 5.4
76
- 5.5
87
- 5.6
98
- 7.0
109
- 7.1
10+
- 7.2
1111
- nightly
1212
env:
1313
- REMOVE_XDEBUG="0"
@@ -21,7 +21,12 @@ matrix:
2121
include:
2222
- php: hhvm-3.12
2323
env: REMOVE_XDEBUG="0" HHVM="1"
24-
dist: trusty
24+
- php: 5.3
25+
env: REMOVE_XDEBUG="0"
26+
dist: precise
27+
- php: 5.3
28+
env: REMOVE_XDEBUG="1"
29+
dist: precise
2530

2631
cache:
2732
directories:
@@ -45,3 +50,4 @@ after_script:
4550
- if [ $(phpenv version-name) = "5.6" ] && [ "$REMOVE_XDEBUG" = "0" ]; then php ocular.phar code-coverage:upload --format=php-clover test/clover.xml --revision=$TRAVIS_COMMIT; fi
4651
- if [ $(phpenv version-name) = "7.0" ] && [ "$REMOVE_XDEBUG" = "0" ]; then php ocular.phar code-coverage:upload --format=php-clover test/clover.xml --revision=$TRAVIS_COMMIT; fi
4752
- if [ $(phpenv version-name) = "7.1" ] && [ "$REMOVE_XDEBUG" = "0" ]; then php ocular.phar code-coverage:upload --format=php-clover test/clover.xml --revision=$TRAVIS_COMMIT; fi
53+
- if [ $(phpenv version-name) = "7.2" ] && [ "$REMOVE_XDEBUG" = "0" ]; then php ocular.phar code-coverage:upload --format=php-clover test/clover.xml --revision=$TRAVIS_COMMIT; fi

lib/sentry/sentry/CHANGELOG.md

+47
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,54 @@
22

33
## Unreleased
44

5+
- ...
6+
7+
## 1.9.0 (2018-05-03)
8+
9+
- Fixed undefined variable (#588)
10+
- Fix for exceptions throwing exceptions when setting event id (#587)
11+
- Fix monolog handler not accepting Throwable (#586)
12+
- Add `excluded_exceptions` option to exclude exceptions and their extending exceptions (#583)
13+
- Fix `HTTP_X_FORWARDED_PROTO` header detection (#578)
14+
- Fix sending events async in PHP 5 (#576)
15+
- Avoid double reporting due to `ErrorException`s (#574)
16+
- Make it possible to overwrite serializer message limit of 1024 (#559)
17+
- Allow request data to be nested up to 5 levels deep (#554)
18+
- Update serializer to handle UTF-8 characters correctly (#553)
19+
20+
## 1.8.4 (2018-03-20)
21+
22+
- Revert ignoring fatal errors on PHP 7+ (#571)
23+
- Add PHP runtime information (#564)
24+
- Cleanup the `site` value if it's empty (#555)
25+
- Add `application/json` input handling (#546)
26+
27+
## 1.8.3 (2018-02-07)
28+
29+
- Serialize breadcrumbs to prevent issues with binary data (#538)
30+
- Fix notice array_key_exists() expects parameter 2 to be array, null given (#527)
31+
32+
## 1.8.2 (2017-12-21)
33+
34+
- Improve handling DSN with "null" like values (#522)
35+
- Prevent warning in Raven_Stacktrace (#493)
36+
37+
## 1.8.1 (2017-11-09)
38+
39+
- Add setters for the serializers on the `Raven_Client` (#515)
40+
- Avoid to capture `E_ERROR` in PHP 7+, because it's also a `Throwable` that gets captured and duplicates the error (#514)
41+
42+
## 1.8.0 (2017-10-29)
43+
44+
- Use namespaced classes in test for PHPUnit (#506)
45+
- Prevent segmentation fault on PHP `<5.6` (#504)
46+
- Remove `ini_set` call for unneeded functionality (#501)
47+
- Exclude single `.php` files from the app path (#500)
48+
- Start testing PHP 7.2 (#489)
49+
- Exclude anonymous frames from app path (#482)
50+
551
## 1.7.1 (2017-08-02)
52+
653
- Fix of filtering sensitive data when there is an exception with multiple 'values' (#483)
754

855
## 1.7.0 (2017-06-07)

lib/sentry/sentry/README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
# Sentry for PHP
88

99
[![Build Status](https://secure.travis-ci.org/getsentry/sentry-php.png?branch=master)](http://travis-ci.org/getsentry/sentry-php)
10-
[![Total Downloads](https://img.shields.io/packagist/dt/sentry/sentry.svg?style=flat-square)](https://packagist.org/packages/sentry/sentry)
11-
[![Downloads per month](https://img.shields.io/packagist/dm/sentry/sentry.svg?style=flat-square)](https://packagist.org/packages/sentry/sentry)
12-
[![Latest stable version](https://img.shields.io/packagist/v/sentry/sentry.svg?style=flat-square)](https://packagist.org/packages/sentry/sentry)
13-
[![License](http://img.shields.io/packagist/l/sentry/sentry.svg?style=flat-square)](https://packagist.org/packages/sentry/sentry)
10+
[![Total Downloads](https://poser.pugx.org/sentry/sentry/downloads)](https://packagist.org/packages/sentry/sentry)
11+
[![Monthly Downloads](https://poser.pugx.org/sentry/sentry/d/monthly)](https://packagist.org/packages/sentry/sentry)
12+
[![Latest Stable Version](https://poser.pugx.org/sentry/sentry/v/stable)](https://packagist.org/packages/sentry/sentry)
13+
[![License](https://poser.pugx.org/sentry/sentry/license)](https://packagist.org/packages/sentry/sentry)
1414
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/getsentry/sentry-php/master.svg)](https://scrutinizer-ci.com/g/getsentry/sentry-php/)
1515
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/getsentry/sentry-php/master.svg)](https://scrutinizer-ci.com/g/getsentry/sentry-php/)
1616

@@ -98,28 +98,28 @@ Tagging a Release
9898
2. Create a new branch for the minor version (if not present):
9999

100100
```
101-
$ git checkout -b releases/1.7.x
101+
$ git checkout -b releases/1.9.x
102102
```
103103

104104
3. Update the hardcoded version tag in ``Client.php``:
105105

106-
```
106+
```php
107107
class Raven_Client
108108
{
109-
const VERSION = '1.7.0';
109+
const VERSION = '1.9.0';
110110
}
111111
```
112112

113113
4. Commit the change:
114114

115115
```
116-
$ git commit -a -m "1.7.0"
116+
$ git commit -a -m "1.9.0"
117117
```
118118

119119
5. Tag the branch:
120120

121121
```
122-
git tag 1.7.0
122+
git tag 1.9.0
123123
```
124124

125125
6. Push the tag:
@@ -137,24 +137,24 @@ git checkout master
137137
8. Add the next minor release to the ``CHANGES`` file:
138138

139139
```
140-
## 1.8.0 (unreleased)
140+
## 1.10.0 (unreleased)
141141
```
142142

143143
9. Update the version in ``Client.php``:
144144

145-
```
145+
```php
146146
class Raven_Client
147147
{
148-
const VERSION = '1.8.x-dev';
148+
const VERSION = '1.10.x-dev';
149149
}
150150
```
151151

152152
10. Lastly, update the composer version in ``composer.json``:
153153

154-
```
154+
```json
155155
"extra": {
156156
"branch-alias": {
157-
"dev-master": "1.8.x-dev"
157+
"dev-master": "1.10.x-dev"
158158
}
159159
}
160160
```

lib/sentry/sentry/bin/sentry

+3-5
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ function raven_cli_test($command, $args)
2121

2222
function cmd_test($dsn)
2323
{
24-
if (empty($dsn)) {
25-
exit('ERROR: Missing DSN value');
26-
}
27-
2824
// Parse DSN as a test
2925
try {
30-
$parsed = Raven_Client::parseDSN($dsn);
26+
if (empty(Raven_Client::parseDSN($dsn))) {
27+
exit('ERROR: Missing DSN value');
28+
}
3129
} catch (InvalidArgumentException $ex) {
3230
exit("ERROR: There was an error parsing your DSN:\n " . $ex->getMessage());
3331
}

lib/sentry/sentry/composer.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"require-dev": {
1515
"friendsofphp/php-cs-fixer": "^1.8.0",
16-
"phpunit/phpunit": "^4.8 || ^5.0",
16+
"phpunit/phpunit": "^4.8.35 || ^5.7",
1717
"monolog/monolog": "*"
1818
},
1919
"require": {
@@ -24,7 +24,6 @@
2424
"ext-hash": "*",
2525
"ext-json": "*",
2626
"ext-mbstring": "*",
27-
"immobiliare/sentry-php": "Fork that fixes support for PHP 5.2",
2827
"monolog/monolog": "Automatically capture Monolog events as breadcrumbs"
2928
},
3029
"conflict": {
@@ -54,7 +53,7 @@
5453
},
5554
"extra": {
5655
"branch-alias": {
57-
"dev-master": "1.8.x-dev"
56+
"dev-master": "1.9.x-dev"
5857
}
5958
}
6059
}

lib/sentry/sentry/docs/Makefile

-153
This file was deleted.

0 commit comments

Comments
 (0)