|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81509 pg_end_copy still expects a resource
Submitted: 2021-10-05 15:35 UTC Modified: 2021-10-05 15:36 UTC
From: Assigned: mbeccati (profile)
Status: Closed Package: PostgreSQL related
PHP Version: 8.1.0RC3 OS: *
Private report: No CVE-ID: None
 [2021-10-05 15:35 UTC]
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-10-05 15:36 UTC]
-Assigned To: +Assigned To: mbeccati
 [2021-10-05 16:20 UTC]
Automatic comment on behalf of mbeccati
Log: Fix #81509 pg_end_copy still expects a resource
 [2021-10-05 16:20 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 10:01:29 2024 UTC