PostgreSQL-For-Wordpress / postgresql-for-wordpress

A maintained fork of https://wordpress.org/plugins/postgresql-for-wordpress/
GNU General Public License v2.0
220 stars 71 forks source link

PHP 8 / WP 6+ compatibility fixes #29

Closed mattbucci closed 10 months ago

mattbucci commented 10 months ago

This PR attempts to address issues with PHP 8 and WP 6+ compatibility

All functions from the PostgreSQL extension that previously returned a resource object now return a class object, and their counterpart functions also accept the same class objects.

Note that the is_resource function no longer returns true for the new class objects, and it may now be necessary to change the is_resource check with a comparison to false, or account for the new class instances as well.