CakeDC/cakephp-oracle-driver

Plugin for PHP 8

Opened this issue · 4 comments

Recently install cakephp 4 over PHP 8 and this work good and faster, less the cakedc oracle plugin not working. Version PDO and OCI is different in OCI8Statement.php file.

Any option of upgrade this plugin?

I have tested the 5.x plugin with PHP 8.2 and it does not throw any compatibility errors with the PHP version. However, there is an error when instantiating the 'trait' ConfigTrait, which is not used. Additionally, the 'config()' method present in Cake/Database/Driver is incompatible with ConfigTrait.

alphp commented

First changes made.
https://github.com/alphp/cakephp-oracle-driver/tree/5.x-php-8.x
Fot testing:

composer config repositories.cakephp-oracle-driver git "https://github.com/alphp/cakephp-oracle-driver"
composer require cakedc/cakephp-oracle-driver dev-5.x-php-8.x

Hi @alphp I tested and confirmed this resolved the issue with the config() method and ConfigTrait that @wntonto reported. Can this be merged with main soon?

@alphp thank you!