Bug #81509 [NEW]: pg_end_copy still expects a resource

From: Date: Tue, 05 Oct 2021 15:35:33 +0000
Subject: Bug #81509 [NEW]: pg_end_copy still expects a resource
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237053@lists.php.net to get a copy of this message
From:             mbeccati
Operating system: *
PHP version:      8.1.0RC3
Package:          PostgreSQL related
Bug Type:         Bug
Bug description:pg_end_copy still expects a resource

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 bug report at https://bugs.php.net/bug.php?id=81509&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=81509&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=81509&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=81509&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=81509&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=81509&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=81509&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=81509&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=81509&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=81509&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=81509&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81509&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=81509&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=81509&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=81509&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=81509&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=81509&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=81509&r=mysqlcfg


Thread (2 messages)

« previous php.bugs (#237053) next »