Comments (5)
That's how it's supposed to work to me: the internal function (the native one, non-polyfilled) is not found since you're on PHP 8.1
Try running this on PHP 8.3, it should be green.
from polyfill.
That doesn't make much sense to me. From what I remember, we were including bootstrap.php
files using TestListenerTrait
which made sure the function is registered globally - this is to use same test code on PHP 8.1 and 8.3 and compare results between polyfilled and native implementation.
from polyfill.
OK, I think I got it now - I always thought we run the future-compatible tests on old versions too, and that the functions are globally registered but now I see the mechanism is much more sophisticated. I just wonder if that won't produce any regressions, as we test json_validate
only on PHP 8.3 and up, we could technically put some new syntax which is not compatible with older versions and still observe a green CI 🤔
from polyfill.
Aren't we testing the polyfill variant on all PHP versions ?
from polyfill.
Related Issues (20)
- Polyfill must be same to native class HOT 3
- `enum_exists` not specified in `polyfill-php81` README HOT 2
- AllowDynamicProperties polyfill HOT 1
- TODO `PhpToken` HOT 21
- URL in GitHub about section for symfony/polyfill-php82 is incorrect HOT 4
- symfony/polyfill-mbstring can no longer be installed (as of today) HOT 7
- mb_strlen returns 0 instead of 1 for the char chr(254) HOT 7
- polyfill-mbstring: mb_check_encoding crashes for array input
- normalizer_is_normalized has nullable string parameter HOT 2
- Polyfill DATE_ISO8601_EXPANDED HOT 3
- Missing polyfills for PHP 8.3 HOT 1
- #[\SensitiveParameter] is available since PHP 8.2, but loaded on 8.1 HOT 1
- Backport fix for ini_parse_quantity from PHP HOT 2
- Polyfill PHP 8.3 is incomplete HOT 3
- Missing str_increment and str_decrement polyfill
- [PHP 8.4] `mb_trim`, `mb_ltrim`, and `mb_rtrim` polyfills HOT 1
- Intl Collator types are (slightly) incoherent HOT 2
- ini_parse_quantity not defined when using the polyfill HOT 2
- Inconsistency of composer autoload and packages after removing polyfill package HOT 1
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 polyfill.