Giter VIP home page Giter VIP logo

Comments (7)

Ocramius avatar Ocramius commented on July 25, 2024

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.

marc-mabe avatar marc-mabe commented on July 25, 2024

@Ocramius The current adapter only works with APCu if compiled with the flag --enable-apc-bc

from zend-cache.

Ocramius avatar Ocramius commented on July 25, 2024

@marc-mabe which is the only reason why somebody would use APCu anyway? :|

from zend-cache.

marc-mabe avatar marc-mabe commented on July 25, 2024

@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.

Ocramius avatar Ocramius commented on July 25, 2024

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.

krakjoe avatar krakjoe commented on July 25, 2024

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.

marc-mabe avatar marc-mabe commented on July 25, 2024

closed by 2cd809d

from zend-cache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.