Skip to content

Commit 384a65c

Browse files
Merge branch 'PHP-8.6'
* PHP-8.6: [`%pS` migration] Use `%pS` in ext/pdo_pgsql (#23163)
2 parents 4a40862 + 38929f5 commit 384a65c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ext/pdo_pgsql/pgsql_driver.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,11 +1534,11 @@ static int pdo_pgsql_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /* {{{
15341534

15351535
/* support both full connection string & connection string + login and/or password */
15361536
if (tmp_user) {
1537-
smart_str_append_printf(&conn_str, " user='%s'", ZSTR_VAL(tmp_user));
1537+
smart_str_append_printf(&conn_str, " user='%pS'", tmp_user);
15381538
}
15391539

15401540
if (tmp_pass) {
1541-
smart_str_append_printf(&conn_str, " password='%s'", ZSTR_VAL(tmp_pass));
1541+
smart_str_append_printf(&conn_str, " password='%pS'", tmp_pass);
15421542
}
15431543
smart_str_0(&conn_str);
15441544

0 commit comments

Comments
 (0)