1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix uouv in pg_put_copy_end()

Closes GH-18383.
This commit is contained in:
Niels Dossche
2025-04-21 15:54:29 +02:00
parent 29a5adc6af
commit 4621423e5e
2 changed files with 4 additions and 1 deletions

3
NEWS
View File

@@ -56,6 +56,9 @@ PHP NEWS
- PDO Sqlite:
. Fix memory leak on error return of collation callback. (nielsdos)
- PgSql:
. Fix uouv in pg_put_copy_end(). (nielsdos)
- SPL:
. Fixed bug GH-18322 (SplObjectStorage debug handler mismanages memory).
(nielsdos)

View File

@@ -6215,7 +6215,7 @@ PHP_FUNCTION(pg_put_copy_end)
{
zval *pgsql_link;
pgsql_link_handle *link;
zend_string *error;
zend_string *error = NULL;
char *err = NULL;
ZEND_PARSE_PARAMETERS_START(1, 2)