[php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/pdo_pgsql (#23163)

From: Date: Fri, 30 Oct 2026 19:28:11 +0000
Subject: [php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/pdo_pgsql (#23163)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143029@lists.php.net to get a copy of this message
Author: Daniel Scherzer (DanielEScherzer) Committer: GitHub (web-flow) Pusher: DanielEScherzer Date: 2026-10-30T12:28:07-07:00 Commit: https://github.com/php/php-src/commit/38929f5ba2c9dfef6efd2d91931e5d2ca4b0058c Raw diff: https://github.com/php/php-src/commit/38929f5ba2c9dfef6efd2d91931e5d2ca4b0058c.diff [%pS migration] Use %pS in ext/pdo_pgsql (#23163) Changed paths: M ext/pdo_pgsql/pgsql_driver.c Diff: diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c index 548a47c3ee83..bdb8a067e61b 100644 --- a/ext/pdo_pgsql/pgsql_driver.c +++ b/ext/pdo_pgsql/pgsql_driver.c @@ -1534,11 +1534,11 @@ static int pdo_pgsql_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /* {{{ /* support both full connection string & connection string + login and/or password */ if (tmp_user) { - smart_str_append_printf(&conn_str, " user='%s'", ZSTR_VAL(tmp_user)); + smart_str_append_printf(&conn_str, " user='%pS'", tmp_user); } if (tmp_pass) { - smart_str_append_printf(&conn_str, " password='%s'", ZSTR_VAL(tmp_pass)); + smart_str_append_printf(&conn_str, " password='%pS'", tmp_pass); } smart_str_0(&conn_str);

« previous php.cvs (#143029) next »