Skip to content

Commit

Permalink
Fix #81509 pg_end_copy still expects a resource
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeccati committed Oct 5, 2021
1 parent 202a099 commit 958daa6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ PHP NEWS
- PCRE:
. Unfixed bug #81424 (PCRE2 10.35 JIT performance regression). (cmb)

- PgSQL:
. Fixed bug #81509 (pg_end_copy still expects a resource). (Matteo)

- Standard:
. Fixed bug #81491 (Incorrectly using libsodium for argon2 hashing).
(Dan Pock)
Expand Down
2 changes: 1 addition & 1 deletion ext/pgsql/pgsql.c
Original file line number Diff line number Diff line change
Expand Up @@ -3007,7 +3007,7 @@ PHP_FUNCTION(pg_end_copy)
int result = 0;
pgsql_link_handle *link;

if (zend_parse_parameters(ZEND_NUM_ARGS(), "|r!", &pgsql_link, pgsql_link_ce) == FAILURE) {
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|O!", &pgsql_link, pgsql_link_ce) == FAILURE) {
RETURN_THROWS();
}

Expand Down

0 comments on commit 958daa6

Please sign in to comment.