Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] APC and APCU mismatch #162

Closed
OwenMelbz opened this issue Mar 19, 2019 · 1 comment
Closed

[Bug] APC and APCU mismatch #162

OwenMelbz opened this issue Mar 19, 2019 · 1 comment

Comments

@OwenMelbz
Copy link

Hi,

There seems to be a mismatch in the code with apc and apcu.

The Apc driver specifically uses apcu e.g.

public function has($key)
{
    return \apcu_exists($key);
}

however the "default cache" method checks for the wrong extension e.g.

if (extension_loaded('apc') && ini_get('apc.enabled')) {
    return new ApcCache();
}

extension_loaded('apc') returns false.

This is because it's registered as apcu

Changing the code to extension_loaded('apcu') fixes the problem and enables the built in cache.

--

Can we look into getting this patched and released?

Thanks :)

@c0nst4ntin
Copy link
Collaborator

@OwenMelbz I'm happy to tell you, that this issue was finally fixed in feat!: support PHP 8 #190

To make use of this change please upgrade to Version 5.2.0

Sadly, I couldn't use your old PR, since the branch got deleted. I will proceed to close this issue.

If you run into any trouble with the package again, please feel free to open up a new Issue

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

No branches or pull requests

2 participants