Skip to content

ext/pgsql: parameters and escaped strings truncated at the first null… - #24240

Open
devnexen wants to merge 1 commit into
php:masterfrom
devnexen:gh24233_followup
Open

devnexen wants to merge 1 commit into
php:masterfrom
devnexen:gh24233_followup

Conversation

@devnexen

Copy link
Copy Markdown
Member

… byte.

Follow-up of GH-24238, which fixed the same truncation in pdo_pgsql. pg_query_params(), pg_execute() and their pg_send_*() variants passed parameters to libpq as C strings, and pg_escape_string(), pg_escape_literal() and pg_escape_identifier() stopped at the first null byte. They now throw a ValueError.

… byte.

Follow-up of phpGH-24238, which fixed the same truncation in pdo_pgsql.
pg_query_params(), pg_execute() and their pg_send_*() variants passed
parameters to libpq as C strings, and pg_escape_string(),
pg_escape_literal() and pg_escape_identifier() stopped at the first
null byte. They now throw a ValueError.
@devnexen
devnexen marked this pull request as ready for review October 10, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant