Git Product home page Git Product logo

Comments (5)

stof avatar stof commented on August 16, 2024 1

note that their polyfill of APCIterator is broken.

Btw, it is weird that @sanis created this as a fork on the Symfony apcu polyfill, as there is no reason to share the history (they are entirely different codebases)

from polyfill.

stof avatar stof commented on August 16, 2024

Putting it in the same polyfill does not make sense:

  • loading both at the same time does not make sense (infinite loop)
  • code using apcu_* functions has no reason to require a APC polyfill.

Btw, I'm rather -1 on this, for several reasons:

  • our goal with polyfills is to enable writing future-proof code, not writing code based on deprecated/removed APIs
  • the fact that it would trigger infinite loops when you load the polyfills for both APC and APCu without having these extensions enabled looks quite bad.

from polyfill.

mcfedr avatar mcfedr commented on August 16, 2024

I found an existing version of this outside of symfony polyfills - https://github.com/sanis/polyfill-apc
If its not part of what Symfony whats to provide then ill use the external one.
Btw, its not going to have infinite loops because both polyfills check for the module before defining functions.

from polyfill.

sanis avatar sanis commented on August 16, 2024

Yeah, that's really weird :) My bad. I will try to fix it in near future.

from polyfill.

keradus avatar keradus commented on August 16, 2024

It's funny to fork it, but what's wierd is to basically copy-paste the code and made small adjustments, then override the copyright of file (while leaving copyright of package)...

from polyfill.

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.