Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use Apcu_fetch instead of apc_fetch #16830

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

Closed
layanto opened this issue Dec 4, 2015 · 4 comments
Closed

Use Apcu_fetch instead of apc_fetch #16830

layanto opened this issue Dec 4, 2015 · 4 comments

Comments

@layanto
Copy link

layanto commented Dec 4, 2015

Since minimum supported PHP for Symfony 3 is 5.5.9, maybe time to use apcu_fetch instead of apc_fetch. This way no need to enable APC backward compatibility mode with Apcu as APC does not exist for PHP 5.5 anyway. Especially with PHP 7, APC backward compatibility in Apcu is not enabled by default.

@Tobion
Copy link
Contributor

Tobion commented Dec 4, 2015

The only non-deprecated class using APC is ApcClassLoader.
I think we could also deprecate all those cache specific class loaders and instead provide a DoctrineCachedClassLoader similar to what we did for validator.mapping.cache.apc. See discussion in #16822

Then it's only a matter of also adding a ApcuCache in https://github.com/doctrine/cache

@layanto
Copy link
Author

layanto commented Dec 5, 2015

Good idea to deprecate this and use Doctrine Cache instead. There already is a PR on this for Doctrine Cache.

doctrine/cache#112 (commits)

@catch56
Copy link

catch56 commented Jan 12, 2016

I don't see any mention of the classloader in #16822, and for me at least, it's important to keep the classloader and actual cache systems separate - the classloader is required long before the container is available.

@nicolas-grekas
Copy link
Member

Fixed by #17358

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

5 participants