Skip to content

Commit 958daa6

Browse files
committed
Fix #81509 pg_end_copy still expects a resource
1 parent 202a099 commit 958daa6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ PHP NEWS
1717
- PCRE:
1818
. Unfixed bug #81424 (PCRE2 10.35 JIT performance regression). (cmb)
1919

20+
- PgSQL:
21+
. Fixed bug #81509 (pg_end_copy still expects a resource). (Matteo)
22+
2023
- Standard:
2124
. Fixed bug #81491 (Incorrectly using libsodium for argon2 hashing).
2225
(Dan Pock)

ext/pgsql/pgsql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3007,7 +3007,7 @@ PHP_FUNCTION(pg_end_copy)
30073007
int result = 0;
30083008
pgsql_link_handle *link;
30093009

3010-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|r!", &pgsql_link, pgsql_link_ce) == FAILURE) {
3010+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|O!", &pgsql_link, pgsql_link_ce) == FAILURE) {
30113011
RETURN_THROWS();
30123012
}
30133013

0 commit comments

Comments
 (0)