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

fix format in pdo8 Plugins #60

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
## Changes

### v0.3.3

* fix dsn on pdo8

### v0.3.0

* add autoloader plugins

### v2.1.0

* remove setting.ini
Expand Down
3 changes: 2 additions & 1 deletion lib/Pinpoint/Plugins/SysV2/_pdo/pdo8.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
function ($dsn, $username = null, $password = null, $options = null) use ($weakMap) {
$pdo = pinpoint_get_this();
if ($pdo instanceof PDO) {
$weakMap[$pdo] = $dsn;
// fix https://github.com/pinpoint-apm/pinpoint-c-agent/issues/647
$weakMap[$pdo] = parse_connect_string($dsn)["host"];
}
},
function ($ret) {
Expand Down
Loading