Git Product home page Git Product logo

Comments (7)

krakjoe avatar krakjoe commented on July 17, 2024

@rlerdorf suggested the name was changed, I don't think APC is being retired, it can't really be ... so that complicates matters, additionally they cannot have the same name and both be on pecl, so route to installation might be a bit tricky if this has to stay on github long term.

others have suggested that the userland api be changed to apcu_* with an option to emulate apc_* functions at runtime based on some configuration option.

I don't really know what to do here, I'll be taking my lead from everyone else ...

from apcu.

remicollet avatar remicollet commented on July 17, 2024

I was only suggesting to rename the extension name (.so or .dll), not the project.

Currently, apc.so and apcu.so cannot be load at the same time (because of function name conflict)

Client projects could use

  • funtion_exists("apc_get")
  • extension_loaded("apc")
  • phpversion("apc");
  • other

It you plan to provide a real "dropin" replacement (at PHP api level), you need to have this various solutions to work.

It will be really a huge work (and probably a waste of time) to ask each project to be adapted to use APCu, I really think this must stay an admin choice, which should be as much as transparent as possible. And it should also work with old project (without need of an update / patch)

Exemple : upgrade from PHP 5.3 + APC to PHP 5.5 + Zend OPcache + APCu

from apcu.

remicollet avatar remicollet commented on July 17, 2024

Of course, comment from some pecl guru will be welcome, as I really hope this extension could become part of PECL forge, to get more visibility, and take benefit of the PECL project resources.

from apcu.

krakjoe avatar krakjoe commented on July 17, 2024

Ah yes, that actually does make sense ...

from apcu.

remicollet avatar remicollet commented on July 17, 2024

My comment about renaming .so have no sense, sorry. This is the internal module name "apc" which need to be provided.

Probably we need to look at "hash" official extension which provides emulated "mhash" extension and provide both extensions and both set of functions and apply the same solution here.

from apcu.

krakjoe avatar krakjoe commented on July 17, 2024

I have implemented the rest of compatibility mode ...

This can be closed now if everything is in order ?

I'm not sure how best to handle phpdoc, and I'm not sure about the backward compatibility of user bin functions (old functions took two arrays, we now take one) ... if anyone has any thoughts ...

from apcu.

remicollet avatar remicollet commented on July 17, 2024

Yes, you can close this one. All seems fine (except the doc blocks which need a check / clean)

Thanks.

from apcu.

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.