Bug #81464 [NEW]: Regression: pgsql resource types

From: Date: Tue, 21 Sep 2021 16:18:14 +0000
Subject: Bug #81464 [NEW]: Regression: pgsql resource types
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236731@lists.php.net to get a copy of this message
From: weierophinney Operating system: Ubuntu 20.04 PHP version: 8.1.0RC2 Package: PostgreSQL related Bug Type: Bug Bug description:Regression: pgsql resource types Description: ------------ In all prior releases of PHP, the Postgres resources were as stated on https://www.php.net/manual/en/resource.php With the merging of https://github.com/php/php-src/pull/6791, PHP 8.1.0 is changing pgsql resources into resource objects. This breaks existing code that is checking for the old resource types as currently documented. As such, this is a BC BREAK in a minor version. Test script: --------------- $pgsql = pg_connect($validConnectionString); echo get_resource_type($pgsql), "\n"; $pgResult = pg_query($pgsql, $someValidSql); echo get_resource_type($pgResult), "\n"; Expected result: ---------------- pgsql link pgsql result Actual result: -------------- PgSql\Connection PgSql\Result -- Edit bug report at https://bugs.php.net/bug.php?id=81464&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=81464&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=81464&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=81464&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=81464&r=needscript Try newer version: https://bugs.php.net/fix.php?id=81464&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=81464&r=support Expected behavior: https://bugs.php.net/fix.php?id=81464&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=81464&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=81464&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=81464&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=81464&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=81464&r=dst IIS Stability: https://bugs.php.net/fix.php?id=81464&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=81464&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=81464&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=81464&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=81464&r=mysqlcfg

« previous php.bugs (#236731) next »