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

Should use apcu_* instead of apc_* if available #114

Open
layanto opened this issue Dec 5, 2015 · 1 comment
Open

Should use apcu_* instead of apc_* if available #114

layanto opened this issue Dec 5, 2015 · 1 comment

Comments

@layanto
Copy link

layanto commented Dec 5, 2015

Since PHP5.5+ with its included OpCache, APC (opcache+userland cache) is no longer used. APCu is used instead. APCu is basically APC with opcache part removed. For PHP5.5 and PHP5.6, APCu included APC backward compatibility functions where all apc_* functions (eg apc_fetch) will internally call apcu_* functions. With PHP7, APC backward compatibility feature is no longer included/enabled by default. As such apc_* functions no longer work.
Any chance of adding NotORM_Cache_APCu class to Cache.php where apc_fetch and apc_store are replaced with apcu_fetch and apcu_store respectively?

@layanto
Copy link
Author

layanto commented Dec 5, 2015

Or add to NotORM_Cache_APC class to selectively use apcu_* if available and fallback on apc_* if not.

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

1 participant