Bug #81509 [Asn->Csd]: pg_end_copy still expects a resource
Edit report at https://bugs.php.net/bug.php?id=81509&edit=1
ID: 81509
Updated by: git@php.net
Reported by: mbeccati@php.net
Summary: pg_end_copy still expects a resource
-Status: Assigned
+Status: Closed
Type: Bug
Package: PostgreSQL related
Operating System: *
PHP Version: 8.1.0RC3
Assigned To: mbeccati
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of mbeccati
Revision: https://github.com/php/php-src/commit/958daa6529c30cd8eec57d2e415a0414aedf0b9c
Log: Fix #81509 pg_end_copy still expects a resource
Previous Comments:
------------------------------------------------------------------------
[2021-10-05 15:35:33] mbeccati@php.net
Description:
------------
Scripts using pg_end_copy() will hang indefinitely or timeout and throw a type error:
Fatal error: Uncaught TypeError: pg_end_copy(): Argument #1 ($connection) must be of type resource
or null, PgSql\Connection given
The function is unfortunately not covered by tests and zend_parse_parameters was not updated to
"O" in 8.1. I'll push the fix shortly.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81509&edit=1
Thread (2 messages)