Skip to content

Commit 13ba0b8

Browse files
authored
fix format in pdo8 Plugins (#60)
1 parent aabcdcd commit 13ba0b8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Changes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
## Changes
22

3+
### v0.3.3
4+
5+
* fix dsn on pdo8
6+
7+
### v0.3.0
8+
9+
* add autoloader plugins
10+
311
### v2.1.0
412

513
* remove setting.ini

lib/Pinpoint/Plugins/SysV2/_pdo/pdo8.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
function ($dsn, $username = null, $password = null, $options = null) use ($weakMap) {
2929
$pdo = pinpoint_get_this();
3030
if ($pdo instanceof PDO) {
31-
$weakMap[$pdo] = $dsn;
31+
// fix https://github.com/pinpoint-apm/pinpoint-c-agent/issues/647
32+
$weakMap[$pdo] = parse_connect_string($dsn)["host"];
3233
}
3334
},
3435
function ($ret) {

0 commit comments

Comments
 (0)