Fix #81509 pg_end_copy still expects a resource

This commit is contained in:
Matteo Beccati 2021-10-05 18:13:50 +02:00
parent 202a099aee
commit 958daa6529
2 changed files with 4 additions and 1 deletions

View file

@ -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();
}