Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Create separate APC/APCu adapters. #85

Open
jlis opened this issue Aug 28, 2018 · 1 comment
Open

Create separate APC/APCu adapters. #85

jlis opened this issue Aug 28, 2018 · 1 comment

Comments

@jlis
Copy link

jlis commented Aug 28, 2018

Would it make sense to create a separate APC and APCu adapter? Currently this package is not usable with PHP 7 since the APC Adapter, which uses APCu methods, is relying on the symfony/polyfill-apcu package under the hood to provide compatibility for PHP 5.6 and APC.

Basically the current APC adapter could be copied and renamed to APCu and instead of apcu_ methods one shall use \apcu_ methods. This way the polyfill could remain.

@NoelDavies
Copy link

It worked for me - I just installed the apcu-bc extension which works perfectly. Not ideal to have more extensions - but hey :P

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants