]> granicus.if.org Git - php/commit
Don't accept null in pg_unescape_bytea()
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 13 Oct 2020 13:36:09 +0000 (15:36 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 13 Oct 2020 13:37:13 +0000 (15:37 +0200)
commit7b0f5f424d7a96f2d7f021660a5280a6565a049d
treed2141b6265689737cf378f08d7793ff57621f678
parent8e531b5b00247246ddc95f55e8b62d0f7cca0093
Don't accept null in pg_unescape_bytea()

This is an error that slipped in via 8d37c37bcdbf6fa99cd275413342457eeb2c664e.
pg_unescape_bytea() did not accept null in PHP 7.4, and it is not
meaningful for it to accept null now -- it will always fail, and now
with a misleading OOM message.
ext/pgsql/pgsql.c
ext/pgsql/pgsql.stub.php
ext/pgsql/pgsql_arginfo.h