Files
php-src/ext/pgsql
Ilia Alshanetsky c135a869c1 ext/pgsql: Restore binary-safe pg_lo_write()
The conversion of the data parameter to Z_PARAM_PATH_STR() made
pg_lo_write() reject any data containing a null byte, breaking writes of
arbitrary binary payloads which were accepted before. Accept embedded
null bytes again by parsing the data as a length-aware string. Sibling
audit: the other Z_PARAM_PATH* conversions from the same change
(pg_connect(), pg_lo_import(), table/statement identifiers) operate on
paths or SQL text where null-byte rejection is intentional.

Closes GH-23649
2026-09-13 10:17:47 -04:00
..
…