-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Note: This task is similar to #37 which raised similar issues with the pgsql back-end, on PHP 8.1
Since PHP 8.4, various odbc methods now return a PHP object rather than a resource.
Several resources have been migrated to objects. Return value checks using
is_resource()
should be replaced with checks forfalse
, unless specified otherwise.
- The ODBC functions now accept and return
Odbc\Result
objects instead ofodbc_result
resources.- The ODBC functions now accept and return
Odbc\Connection
objects instead ofodbc_connection
resources.
In PEAR::DB, the DB_pdbc
class is implemented on the assumption that the returned result is a PHP resource
reference. In particular, there are various is_resource()
checks that will no longer work as expected as this function only returns true for the resource
implementation.
The class needs to be updated to handle both implementations, in order to support older PHP versions as well as continuing to run on PHP >= 8.4.