php.net |  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: mbeccati@php.net Assigned: mbeccati (profile)
Status: Closed Package: PostgreSQL related
PHP Version: 8.1.0RC3 OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mbeccati@php.net
New email:
PHP Version: OS:

 

 [2021-10-05 15:35 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-10-05 15:36 UTC] mbeccati@php.net
-Assigned To: +Assigned To: mbeccati
 [2021-10-05 16:20 UTC] git@php.net
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
 [2021-10-05 16:20 UTC] git@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC