polyfill icon indicating copy to clipboard operation
polyfill copied to clipboard

PHP polyfills

Results 44 polyfill issues
Sort by recently updated
recently updated
newest added

Polyfill taken from [PHP.Watch - PHP 8.2: New `ini_parse_quantity` function](https://php.watch/versions/8.2/ini_parse_quantity#polyfill) Tries to mimic the native warnings with `E_USER_WARNING` errors, and overflow/underflow conditions by inspecting the int to float type change.

Following bug fix on Symfony Intl component, see https://github.com/symfony/symfony/pull/46730 for the full description.

TODO: - [ ] add more tests - https://github.com/voku/polyfill/blob/intl_transliterator/tests/Intl/Transliterator/TransliteratorTest.php - [x] not working as expected for PHP --- This change is [

Hello, I noticed that there is an incompatibility with the mbstring polyfill and PHP 8.1 / Alpine Linux, which breaks a lot of my projects as soon as the php81-mbstring...

help wanted

PHP 8.1 adds a [new class `CURLStringFile`](https://php.watch/versions/8.1/CURLStringFile), that works similar to `CURLFile`, but does not require a _path_ to a file, and accepts a string of file contents instead. This...

Take the following emoji for instance: πŸ‘©β€πŸ‘©β€πŸ‘¦β€πŸ‘¦ This emoji consists of four different emojis glued together by Zero Width Joiner characters, as seen on https://emojipedia.org/family-woman-woman-boy-boy/. When checking the length with...

When calling `mb_convert_encoding()` with `$fromEncoding === 'HTML-ENTITIES'`, the polyfill does not return functionally equivalent strings to the native function. This is because `mb_convert_encoding()` uses `html_entity_decode()` when `$fromEncoding === 'HTML-ENTITIES'` and...

help wanted

PHP 8.1 adds a new `CURLStringFile`, that makes it possible to upload a file directly from a variable. With existing `CURLFile`, it is required to specify a path or a...

I would be good to support [normalizer_get_raw_decomposition](http://php.net/manual/en/normalizer.getrawdecomposition.php) function that appeared in PHP 7.3. I've tried to implement it but seems that [existing decomposition data](https://github.com/symfony/polyfill/blob/6f13be2ff1681db53292eee1719dcee57e983207/src/Intl/Normalizer/Resources/unidata/compatibilityDecomposition.php) is already optimized to get the...

help wanted