CakeDC / cakephp-oracle-driver

CakePHP 3 Driver for Oracle Database
Other
40 stars 25 forks source link

Plugin for PHP 8 #70

Open wntonto opened 1 year ago

wntonto commented 1 year ago

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?

wntonto commented 10 months ago

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 10 months ago

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
graemevarga commented 3 months ago

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?

graemevarga commented 3 months ago

@alphp thank you!