cakephp-oracle-driver icon indicating copy to clipboard operation
cakephp-oracle-driver copied to clipboard

Plugin for PHP 8

Open wntonto opened this issue 1 year ago • 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?

wntonto avatar Apr 24 '23 16:04 wntonto

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.

wntonto avatar Nov 20 '23 16:11 wntonto

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

alphp avatar Nov 24 '23 14:11 alphp

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 avatar Jun 17 '24 14:06 graemevarga

@alphp thank you!

graemevarga avatar Jun 18 '24 21:06 graemevarga