diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-13 15:36:09 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-13 15:37:13 +0200 |
| commit | 7b0f5f424d7a96f2d7f021660a5280a6565a049d (patch) | |
| tree | d2141b6265689737cf378f08d7793ff57621f678 /ext/pgsql/pgsql.stub.php | |
| parent | 8e531b5b00247246ddc95f55e8b62d0f7cca0093 (diff) | |
| download | php-git-7b0f5f424d7a96f2d7f021660a5280a6565a049d.tar.gz | |
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.
Diffstat (limited to 'ext/pgsql/pgsql.stub.php')
| -rw-r--r-- | ext/pgsql/pgsql.stub.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.stub.php b/ext/pgsql/pgsql.stub.php index 66044b95a5..759313d8ba 100644 --- a/ext/pgsql/pgsql.stub.php +++ b/ext/pgsql/pgsql.stub.php @@ -425,7 +425,7 @@ function pg_escape_string($connection, string $string = UNKNOWN): string {} /** @param resource|string $connection */ function pg_escape_bytea($connection, string $string = UNKNOWN): string {} -function pg_unescape_bytea(?string $string = null): string {} +function pg_unescape_bytea(string $string): string {} /** @param resource|string $connection */ function pg_escape_literal($connection, string $string = UNKNOWN): string|false {} |
