Comments (7)
The point of APCu is to make the switch to it transparent: do not change
the APC adapter unless there is an actual need for it, and the current
adapter works just fine with APCu.
On Oct 25, 2015 16:49, "Marc Bennewitz" [email protected] wrote:
As of the old PHP extension APC http://pecl.php.net/package/APC seems
inactive and doesn't compile with PHP-5.6 / PHP-7 (PHP-5.4 should work but
PHP-5.5 not tested) we can drop the adapter for it.In fact the APC extension is inactive because of the PHP opcache and the
possibility to store user data in the cache has been moved to APCu
http://pecl.php.net/package/APCu long time ago.APC and APCu is nearly compatible on storing user data but in some cases
it's not. The differences are already part of the Apc adapter.To simplify the adapter a little bit and because it's no longer possible
to use the old APC extension with the minimal required PHP version it makes
sense to completely drop support for it.Renaming the adapter from Apc to Apcu:
If I only take a look what the optimal way would look like it would make
sense to also rename the Apc adapter to Apcu. With a deeper look the there
are two cases where it could make confusion.
- The APCu extension comes with a BC safe version (the version that
the current adapter supports only)
- Even if it's compiled with BC to APC all APCu functionalities are
available- -> from this POV it's fine
- HHVM comes with APC support for the old APC extension.
- Does someone now if HHVM also supports APCu?
@weierophinney https://github.com/weierophinney @ezimuel
https://github.com/ezimuel @Maks3w https://github.com/Maks3w Thoughts?—
Reply to this email directly or view it on GitHub
#23.
from zend-cache.
@Ocramius The current adapter only works with APCu if compiled with the flag --enable-apc-bc
from zend-cache.
@marc-mabe which is the only reason why somebody would use APCu
anyway? :|
from zend-cache.
@Ocramius The APC extension is dead and it doesn't work with our out min requirements. The most common way to cache user data into shared memory is APCu but we only support APCu if it was compiled with the BC flag. I think it would be very good if we completely support APCu - not only in one outdated case.
Btw. the default option for this flag is to not compile it with for BC ;)
from zend-cache.
Btw. the default option for this flag is to not compile it with for BC ;)
Yes, but no APCu installation that I saw so far uses APCu specific stuff: everyone just wants the BC compliant interface.
I think it would be very good if we completely support APCu - not only in one outdated case.
I'd rather ask @krakjoe what his plans are for 7.0 and APCu: he went for a full rewrite (multiple times, IIRC), so we better wait for something stable before jumping at it.
from zend-cache.
At some point, the APC compat stuff might be dropped, it's not so easy to improve, or document APCu because of the compatibility requirements. Currently there is a bc mode for 7, but it probably would be a good idea to switch to the apcu_* API functions in preparation for the time when the apc compat module is removed ...
from zend-cache.
closed by 2cd809d
from zend-cache.
Related Issues (20)
- Why make Zend\Cache\Storage\Adapter\Filesystem only support string data types? HOT 2
- Add PHP 7.2 support, drop HHVM HOT 1
- ZF2 Memcached PHP7 backward incompatible change HOT 2
- Invalid prototype (PHP 7.2) HOT 10
- StorageFactory Not Reading "cache_dir" Setting HOT 2
- memcached doesn't work with plugin phpSerialize HOT 2
- When 2.8 will be released? HOT 10
- PSR-16 support: serialization using plugin HOT 2
- PSR-16 support: clear by namespace when appropriate HOT 1
- PSR-16 support: prevent concurrent regression when calling delete HOT 3
- ZendCache 2.8 sets $success on getItem if there is a null response HOT 1
- PSR-16 and blackhole not possible HOT 6
- Missing docs about APCU storage HOT 1
- SimpleCacheDecorator and providesPerItemTtl leads undocumented behaviors HOT 4
- StorageInterface::hasItem issue with ext-redis 4.0.1+ HOT 1
- [ZF3] Remove StorageFactory and PatternFactory HOT 2
- Make it possible to decorate cache adapters with PSR6/PSR16 decorators through configuration HOT 1
- Typo in variable for ExtMongoDbResourceManager adapter makes passing db a no-op HOT 3
- SimpleCacheDecorator Cache gets deleted after creation
- Redis::delete is deprecated HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zend-cache.