Coder Social home page Coder Social logo

Comments (3)

stof avatar stof commented on July 29, 2024

Well, many of those things are not polyfillable. Only new functions and new classes are.

New constants are technically polyfillable. But when they are used to enable behavior in existing function, polyfilling the constant without polyfilling the new behavior in the existing function is actually worse because it provides a non-working polyfill (and it breaks feature detection of the actual support).

In this list, the only polyfillable things are the new str_increment and str_decrement functions (and nobody has contributed a polyfill for them yet, which is why they are not there)

from polyfill.

derrabus avatar derrabus commented on July 29, 2024

data/reference/extension/core/83/iniEntries.json:

  • zend.max_allowed_stack_size 8.3.0alpha1
  • zend.reserved_stack_size 8.3.0alpha1

What shall we do about those? How would we polyfill a new ini setting?

  • CURLINFO_CAPATH 8.3.0beta1
  • CURLINFO_CAINFO 8.3.0beta1
  • CURLOPT_MIME_OPTIONS 8.3.0beta1
  • CURLMIMEOPT_FORMESCAPE 8.3.0beta1
  • CURLOPT_WS_OPTIONS 8.3.0beta1
  • CURLWS_RAW_MODE 8.3.0beta1
  • CURLOPT_SSH_HOSTKEYFUNCTION 8.3.0beta1
  • CURLOPT_PROTOCOLS_STR 8.3.0beta1
  • CURLOPT_REDIR_PROTOCOLS_STR 8.3.0beta1
  • CURLOPT_CA_CACHE_TIMEOUT 8.3.0beta1
  • CURLOPT_QUICK_EXIT 8.3.0beta1
  • CURLKHMATCH_OK 8.3.0beta1
  • CURLKHMATCH_MISMATCH 8.3.0beta1
  • CURLKHMATCH_MISSING 8.3.0beta1
  • CURLKHMATCH_LAST 8.3.0beta1

We could polyfill those constants, but not the logic behind it. In fact, if you used one of the polyfilled constants like they're supposed to be used and passed it to actual ext-curl functions, you'd get an error. So what's the point in polyfilling them?

data/reference/extension/date/83/methods.json:

  • DatePeriod::createFromISO8601String 8.3.0beta1

We cannot polyfill methods/constants of core classes. 🤷🏻‍♂️

Same issue for all ext-dom and ext-intl classes you've listed.

data/reference/extension/pgsql/83/functions.json:

  • pg_enter_pipeline_mode 8.3.0alpha1
  • pg_exit_pipeline_mode 8.3.0alpha1
  • pg_pipeline_status 8.3.0alpha1
  • pg_pipeline_sync 8.3.0alpha1
  • pg_set_error_context_visibility 8.3.0alpha2

Those functions leverage functionality of the Postgres client library. I doubt that we can emulate them in userland.

data/reference/extension/standard/83/functions.json:

  • str_increment 8.3.0beta1
  • str_decrement 8.3.0beta1

PR welcome! 🙂

from polyfill.

nicolas-grekas avatar nicolas-grekas commented on July 29, 2024

Closing in favor of #452

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.