### Description Dollar-quoting is a PostgreSQL way of quoting strings, and "no characters inside a dollar-quoted string are ever escaped" (see [the official docs](https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-DOLLAR-QUOTING)). pdo_pgsql however sees ? as parameter placeholders (and **replaces them with $1**, $2, etc., when _not_ emulating prepares which is the default mode). See [attached test case bug14244.phpt](https://github.com/php/php-src/files/15320459/bug14244.txt) ### PHP Version PHP 8.2.1