Bug #81509 [Asn->Csd]: pg_end_copy still expects a resource

From: Date: Tue, 05 Oct 2021 16:20:34 +0000
Subject: Bug #81509 [Asn->Csd]: pg_end_copy still expects a resource
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237055@lists.php.net to get a copy of this message
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)

« previous php.bugs (#237055) next »