forked from UnicornInReverse/CakePHP2-Sentry_old
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove link to git submodule and add actual files
- Loading branch information
Luiz Gustavo Nogara
committed
Jan 19, 2018
1 parent
fcd59dc
commit d871a6d
Showing
74 changed files
with
14,878 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "Vendor/sentry"] | ||
path = Vendor/sentry | ||
url = https://github.com/getsentry/sentry-php.git | ||
Submodule sentry
deleted from
c19605
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/examples export-ignore | ||
/docs export-ignore | ||
/test export-ignore |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*.lock | ||
package.xml | ||
/vendor | ||
.idea | ||
.php_cs.cache | ||
docs/_build | ||
test/clover.xml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "docs/_sentryext"] | ||
path = docs/_sentryext | ||
url = https://github.com/getsentry/sentry-doc-support |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
$finder = Symfony\CS\Finder\DefaultFinder::create() | ||
->in(__DIR__) | ||
; | ||
|
||
return Symfony\CS\Config\Config::create() | ||
->setUsingCache(true) | ||
->setUsingLinter(true) | ||
->level(Symfony\CS\FixerInterface::PSR2_LEVEL) | ||
->finder($finder) | ||
; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
tools: | ||
php_sim: false | ||
php_pdepend: true | ||
php_analyzer: true | ||
php_code_coverage: true | ||
external_code_coverage: | ||
timeout: 2400 # There can be another pull request in progress | ||
runs: 7 # PHP 5.3 + PHP 5.4 + PHP 5.5 + PHP 5.6 + PHP 7.0 + PHP 7.1 + PHP 7.2 | ||
|
||
build: | ||
environment: | ||
php: | ||
version: 5.6.0 | ||
redis: false | ||
postgresql: false | ||
mongodb: false | ||
|
||
filter: | ||
excluded_paths: [vendor/*, test/*, bin/*, docs/*, examples/*] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
language: php | ||
sudo: false | ||
|
||
php: | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- nightly | ||
env: | ||
- REMOVE_XDEBUG="0" | ||
- REMOVE_XDEBUG="1" | ||
|
||
matrix: | ||
allow_failures: | ||
- php: hhvm-3.12 | ||
- php: nightly | ||
fast_finish: true | ||
include: | ||
- php: hhvm-3.12 | ||
env: REMOVE_XDEBUG="0" HHVM="1" | ||
- php: 5.3 | ||
env: REMOVE_XDEBUG="0" | ||
dist: precise | ||
- php: 5.3 | ||
env: REMOVE_XDEBUG="1" | ||
dist: precise | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
before_install: | ||
- if [ "$REMOVE_XDEBUG" = "1" ]; then phpenv config-rm xdebug.ini; fi | ||
- composer self-update | ||
|
||
install: travis_retry composer install --no-interaction --prefer-dist | ||
|
||
script: | ||
- composer phpcs | ||
- composer tests-travis | ||
|
||
after_script: | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- if [ $(phpenv version-name) = "5.3" ] && [ "$REMOVE_XDEBUG" = "0" ]; then php ocular.phar code-coverage:upload --format=php-clover test/clover.xml --revision=$TRAVIS_COMMIT; fi | ||
- if [ $(phpenv version-name) = "5.4" ] && [ "$REMOVE_XDEBUG" = "0" ]; then php ocular.phar code-coverage:upload --format=php-clover test/clover.xml --revision=$TRAVIS_COMMIT; fi | ||
- if [ $(phpenv version-name) = "5.5" ] && [ "$REMOVE_XDEBUG" = "0" ]; then php ocular.phar code-coverage:upload --format=php-clover test/clover.xml --revision=$TRAVIS_COMMIT; fi | ||
- 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 | ||
- 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 | ||
- 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 | ||
- 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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
The Sentry PHP SDK was originally written by Michael van Tellingen | ||
and is maintained by the Sentry Team. | ||
|
||
http://github.com/getsentry/sentry-php/contributors |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
# CHANGELOG | ||
|
||
## Unreleased | ||
|
||
- ... | ||
|
||
## 1.8.0 (2017-10-29) | ||
|
||
- Use namespaced classes in test for PHPUnit (#506) | ||
- Prevent segmentation fault on PHP `<5.6` (#504) | ||
- Remove `ini_set` call for unneeded functionality (#501) | ||
- Exclude single `.php` files from the app path (#500) | ||
- Start testing PHP 7.2 (#489) | ||
- Exclude anonymous frames from app path (#482) | ||
|
||
## 1.7.1 (2017-08-02) | ||
|
||
- Fix of filtering sensitive data when there is an exception with multiple 'values' (#483) | ||
|
||
## 1.7.0 (2017-06-07) | ||
|
||
- Corrected some issues with argument serialization in stacktraces (#399). | ||
- The default exception handler will now re-raise exceptions when `call_existing` is true and no exception handler is registered (#421). | ||
- Collect `User.ip_address` automatically (#419). | ||
- Added a processor to remove web cookies. It will be enabled by default in `2.0` (#405). | ||
- Added a processor to remove HTTP body data for POST, PUT, PATCH and DELETE requests. It will be enabled by default in `2.0` (#405). | ||
- Added a processor to sanitize HTTP headers (e.g. the Authorization header) (#428). | ||
- Added a processor to remove `pre_context`, `context_line` and `post_context` informations from reported exceptions (#429). | ||
|
||
## 1.6.2 (2017-02-03) | ||
|
||
- Fixed behavior where fatal errors weren't correctly being reported in most situations. | ||
|
||
## 1.6.1 (2016-12-14) | ||
|
||
- Correct handling of null in `user_context`. | ||
|
||
## 1.6.0 (2016-12-09) | ||
|
||
- Improved serialization of certain types to be more restrictive. | ||
- `error_types` can now be configured via `RavenClient`. | ||
- Class serialization has been expanded to include attributes. | ||
- The session extension is no longer required. | ||
- Monolog is no longer a required dependency. | ||
- `user_context` now merges by default. | ||
|
||
## 1.5.0 (2016-09-29) | ||
|
||
- Added named transaction support. | ||
|
||
## 1.4.0 (2016-09-20) | ||
|
||
This version primarily overhauls the exception/stacktrace generation to fix | ||
a few bugs and improve the quality of data (#359). | ||
|
||
- Added `excluded_app_paths` config. | ||
- Removed `shift_vars` config. | ||
- Correct fatal error handling to only operate on expected types. This also fixes some behavior with the error suppression operator. | ||
- Expose anonymous and similar frames in the stacktrace. | ||
- Default `prefixes` to PHP's include paths. | ||
- Remove `module` usage. | ||
- Better handle empty argument context. | ||
- Correct alignment of filename (current frame) and function (caller frame) | ||
|
||
## 1.3.0 (2016-12-19) | ||
|
||
- Fixed an issue causing the error suppression operator to not be respected (#335) | ||
- Fixed some serialization behavior (#352) | ||
- Fixed an issue with app paths and trailing slashes (#350) | ||
- Handle non-latin encoding with source code context line (#345) | ||
|
||
## 1.2.0 (2016-12-08) | ||
|
||
- Handle non-latin encoding in source code and exception values (#342) | ||
- Ensure pending events are sent on shutdown by default (#338) | ||
- Add `captureLastError` helper (#334) | ||
- Dont report duplicate errors with fatal error handler (#334) | ||
- Enforce maximum length for string serialization (#329) | ||
|
||
## 1.1.0 (2016-07-30) | ||
|
||
- Uncoercable values should no longer prevent exceptions from sending | ||
to the Sentry server. | ||
- `install()` can no longer be called multiple times. | ||
|
||
## 1.0.0 (2016-07-28) | ||
|
||
- Removed deprecated error codes configuration from ErrorHandler. | ||
- Removed env data from HTTP interface. | ||
- Removed `message` attribute from exceptions. | ||
- appPath and prefixes are now resolved fully. | ||
- Fixed various getter methods requiring invalid args. | ||
- Fixed data mutation with `send_callback`. | ||
|
||
## 0.22.0 (2016-06-23) | ||
|
||
- Improve handling of encodings. | ||
- Improve resiliency of variable serialization. | ||
- Add 'formatted' attribute to Message interface. | ||
|
||
## 0.21.0 (2016-06-10) | ||
|
||
- Added `transport` option. | ||
- Added `install()` shortcut. | ||
|
||
## 0.20.0 (2016-06-02) | ||
|
||
- Handle missing function names on frames. | ||
- Remove suppression operator usage in breadcrumbs buffer. | ||
- Force serialization of context values. | ||
|
||
## 0.19.0 (2016-05-27) | ||
|
||
- Add `error_reporting` breadcrumb handler. | ||
|
||
## 0.18.0 (2016-05-17) | ||
|
||
- Remove session from serialized data. | ||
- `send_callback` return value must now be false to prevent capture. | ||
- Add various getter/setter methods for configuration. | ||
|
||
## 0.17.0 (2016-05-11) | ||
|
||
- Don't attempt to serialize fixed SDK inputs. | ||
- Improvements to breadcrumbs support in Monolog. | ||
|
||
## 0.16.0 (2016-05-03) | ||
|
||
- Initial breadcrumbs support with Monolog handler. | ||
|
||
## 0.15.0 (2016-04-29) | ||
|
||
- Fixed some cases where serialization wouldn't happen. | ||
- Added sdk attribute. | ||
|
||
## 0.14.0 (2016-04-27) | ||
|
||
- Added `prefixes` option for stripping absolute paths. | ||
- Removed `abs_path` from stacktraces. | ||
- Added `app_path` to specify application root for resolving `in_app` on frames. | ||
- Moved Laravel support to `sentry-laravel` project. | ||
- Fixed duplicate stack computation. | ||
- Added `dsn` option to ease configuration. | ||
- Fixed an issue with the curl async transport. | ||
- Improved serialization of values. | ||
|
||
## 0.13.0 (2015-09-09) | ||
|
||
- Updated API to use new style interfaces. | ||
- Remove session cookie in default processor. | ||
- Expand docs for Laravel, Symfony2, and Monolog. | ||
- Default error types can now be set as part of ErrorHandler configuration. | ||
|
||
## 0.12.1 (2015-07-26) | ||
|
||
- Dont send empty values for various context. | ||
|
||
## 0.12.0 (2015-05-19) | ||
|
||
- Bumped protocol version to 6. | ||
- Fixed an issue with the async curl handler (GH-216). | ||
- Removed UDP transport. | ||
|
||
## 0.11.0 (2015-03-25) | ||
|
||
- New configuration parameter: `release` | ||
- New configuration parameter: `message_limit` | ||
- New configuration parameter: `curl_ssl_version` | ||
- New configuration parameter: `curl_ipv4` | ||
- New configuration parameter: `verify_ssl` | ||
- Updated remote endpoint to use modern project-based path. | ||
- Expanded default sanitizer support to include `auth_pw` attribute. | ||
|
||
## 0.10.0 (2014-09-03) | ||
|
||
- Added a default certificate bundle which includes common root CA's as well as getsentry.com's CA. | ||
|
||
## 0.9.1 (2014-08-26) | ||
|
||
- Change default curl connection to `sync` | ||
- Improve CLI reporting | ||
|
||
## 0.9.0 (2014-06-04) | ||
|
||
- Protocol version 5 | ||
- Default to asynchronous HTTP handler using curl_multi. | ||
|
||
|
||
(For previous versions see the commit history) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Copyright (c) 2012 Sentry Team and individual contributors. | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the Raven, Sentry, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.PHONY: test | ||
|
||
develop: update-submodules | ||
composer install --dev | ||
make setup-git | ||
|
||
update-submodules: | ||
git submodule init | ||
git submodule update | ||
|
||
cs: | ||
vendor/bin/php-cs-fixer fix --config-file=.php_cs --verbose --diff | ||
|
||
cs-dry-run: | ||
vendor/bin/php-cs-fixer fix --config-file=.php_cs --verbose --diff --dry-run | ||
|
||
test: cs-dry-run | ||
vendor/bin/phpunit | ||
|
||
setup-git: | ||
git config branch.autosetuprebase always |
Oops, something went wrong.