Skip to content

ext/pdo_pgsql: bound strings truncated at the first null byte. - #24238

Open
devnexen wants to merge 2 commits into
php:masterfrom
devnexen:gh24233
Open

devnexen wants to merge 2 commits into
php:masterfrom
devnexen:gh24233

Conversation

@devnexen

Copy link
Copy Markdown
Member

Fix #24233

Text parameters and PDO::quote() went through libpq as C strings, fixing like GH-18320 did for sqlite. Both paths now
report an error through PDO::ATTR_ERRMODE. PDO::PARAM_LOB values are sent in binary format and stay unaffected.

Fix php#24233

Text parameters and PDO::quote() went through libpq as C strings, fixing
like phpGH-18320 did for sqlite. Both paths now
report an error through PDO::ATTR_ERRMODE. PDO::PARAM_LOB values are
sent in binary format and stay unaffected.
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.

PDO_PGSQL silently truncates bound strings containing NUL bytes

1 participant